Never join a room when invisible
This commit is contained in:
		
							parent
							
								
									0690a35eea
								
							
						
					
					
						commit
						bfe1e8c631
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -858,6 +858,9 @@ class Connection(ConnectionHandlers):
 | 
				
			||||||
		if not self.connection:
 | 
							if not self.connection:
 | 
				
			||||||
			return
 | 
								return
 | 
				
			||||||
		show = helpers.get_xmpp_show(STATUS_LIST[self.connected])
 | 
							show = helpers.get_xmpp_show(STATUS_LIST[self.connected])
 | 
				
			||||||
 | 
							if show == 'invisible':
 | 
				
			||||||
 | 
								# Never join a room when invisible
 | 
				
			||||||
 | 
								return
 | 
				
			||||||
		p = common.xmpp.Presence(to = '%s@%s/%s' % (room, server, nick),
 | 
							p = common.xmpp.Presence(to = '%s@%s/%s' % (room, server, nick),
 | 
				
			||||||
			show = show, status = self.status)
 | 
								show = show, status = self.status)
 | 
				
			||||||
		if gajim.config.get('send_sha_in_gc_presence'):
 | 
							if gajim.config.get('send_sha_in_gc_presence'):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue