mirror of
				https://github.com/cinnyapp/cinny.git
				synced 2025-11-04 06:20:28 +03:00 
			
		
		
		
	Fix new direct message showing with room (#2386)
as we were mutating the content of m.direct the sdk was comparing old value with new one and preventing update if found equal
This commit is contained in:
		
							parent
							
								
									ebe5beba1d
								
							
						
					
					
						commit
						87fc490c3b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -12,7 +12,7 @@ function addRoomToMDirect(mx, roomId, userId) {
 | 
			
		|||
  const mDirectsEvent = mx.getAccountData('m.direct');
 | 
			
		||||
  let userIdToRoomIds = {};
 | 
			
		||||
 | 
			
		||||
  if (typeof mDirectsEvent !== 'undefined') userIdToRoomIds = mDirectsEvent.getContent();
 | 
			
		||||
  if (typeof mDirectsEvent !== 'undefined') userIdToRoomIds = structuredClone(mDirectsEvent.getContent());
 | 
			
		||||
 | 
			
		||||
  // remove it from the lists of any others users
 | 
			
		||||
  // (it can only be a DM room for one person)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue