Don't allow to send custom presence ton group "groupchats". Fix #3231.
This commit is contained in:
		
							parent
							
								
									6338f63f03
								
							
						
					
					
						commit
						981045005c
					
				
					 1 changed files with 26 additions and 30 deletions
				
			
		| 
						 | 
				
			
			@ -16,7 +16,6 @@
 | 
			
		|||
##
 | 
			
		||||
 | 
			
		||||
import gtk
 | 
			
		||||
import pango
 | 
			
		||||
import gobject
 | 
			
		||||
import os
 | 
			
		||||
import time
 | 
			
		||||
| 
						 | 
				
			
			@ -1187,8 +1186,6 @@ class RosterWindow:
 | 
			
		|||
		for acct in gajim.connections:
 | 
			
		||||
			self.add_account_to_roster(acct)
 | 
			
		||||
			self.add_account_contacts(acct)
 | 
			
		||||
		# Recalculate column width for ellipsizing 
 | 
			
		||||
		self.tree.columns_autosize()
 | 
			
		||||
 | 
			
		||||
	def add_account_contacts(self, account):
 | 
			
		||||
		'''adds contacts of group to roster treeview'''
 | 
			
		||||
| 
						 | 
				
			
			@ -5042,7 +5039,6 @@ class RosterWindow:
 | 
			
		|||
		col.set_cell_data_func(render_image, self.iconCellDataFunc, None)
 | 
			
		||||
 | 
			
		||||
		render_text = gtk.CellRendererText() # contact or group or account name
 | 
			
		||||
		render_text.set_property("ellipsize", pango.ELLIPSIZE_END)
 | 
			
		||||
		col.pack_start(render_text, expand = True)
 | 
			
		||||
		col.add_attribute(render_text, 'markup', C_NAME) # where we hold the name
 | 
			
		||||
		col.set_cell_data_func(render_text, self.nameCellDataFunc, None)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue