don't show twice the same resource in account row tooltip.
This commit is contained in:
		
							parent
							
								
									3f22a94978
								
							
						
					
					
						commit
						21f4378e96
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		|  | @ -1493,6 +1493,14 @@ class RosterWindow: | |||
| 						resources = roster.getResources(jid) | ||||
| 						# ...get the contact info for our other online resources | ||||
| 						for resource in resources: | ||||
| 							# Check if we already have this resource | ||||
| 							found = False | ||||
| 							for contact_ in contacts: | ||||
| 								if contact_.resource == resource: | ||||
| 									found = True | ||||
| 									break | ||||
| 							if found: | ||||
| 								continue | ||||
| 							show = roster.getShow(jid+'/'+resource) | ||||
| 							if not show: | ||||
| 								show = 'online' | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue