Handle UUID properly in group message processing
This commit is contained in:
		
					parent
					
						
							
								efd12028f0
							
						
					
				
			
			
				commit
				
					
						8ede54c925
					
				
			
		
					 1 changed files with 2 additions and 6 deletions
				
			
		|  | @ -2182,10 +2182,7 @@ | ||||||
|                   attributes.left = false; |                   attributes.left = false; | ||||||
|                 } |                 } | ||||||
|               } else if (dataMessage.group.type === GROUP_TYPES.QUIT) { |               } else if (dataMessage.group.type === GROUP_TYPES.QUIT) { | ||||||
|                 if ( |                 if (ConversationController.get(source || sourceUuid).isMe()) { | ||||||
|                   source === textsecure.storage.user.getNumber() || |  | ||||||
|                   sourceUuid === textsecure.storage.user.getUuid() |  | ||||||
|                 ) { |  | ||||||
|                   attributes.left = true; |                   attributes.left = true; | ||||||
|                   groupUpdate = { left: 'You' }; |                   groupUpdate = { left: 'You' }; | ||||||
|                 } else { |                 } else { | ||||||
|  | @ -2196,8 +2193,7 @@ | ||||||
|                 } |                 } | ||||||
|                 attributes.members = _.without( |                 attributes.members = _.without( | ||||||
|                   conversation.get('members'), |                   conversation.get('members'), | ||||||
|                   source, |                   ConversationController.get(source || sourceUuid).get('id') | ||||||
|                   sourceUuid |  | ||||||
|                 ); |                 ); | ||||||
|               } |               } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ken Powers
				Ken Powers