A couple of small bugfixes
This commit is contained in:
		
					parent
					
						
							
								4c98b4a96f
							
						
					
				
			
			
				commit
				
					
						deb3dd5d4e
					
				
			
		
					 2 changed files with 6 additions and 4 deletions
				
			
		| 
						 | 
					@ -1425,8 +1425,7 @@ async function applyGroupChange({
 | 
				
			||||||
  if (actions.modifyMemberAccess) {
 | 
					  if (actions.modifyMemberAccess) {
 | 
				
			||||||
    result.accessControl = {
 | 
					    result.accessControl = {
 | 
				
			||||||
      ...result.accessControl,
 | 
					      ...result.accessControl,
 | 
				
			||||||
      attributes:
 | 
					      members: actions.modifyMemberAccess.membersAccess || ACCESS_ENUM.MEMBER,
 | 
				
			||||||
        actions.modifyMemberAccess.membersAccess || ACCESS_ENUM.MEMBER,
 | 
					 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1344,15 +1344,18 @@ class MessageReceiverInner extends EventTarget {
 | 
				
			||||||
    ev.sender = envelope.source;
 | 
					    ev.sender = envelope.source;
 | 
				
			||||||
    ev.senderUuid = envelope.sourceUuid;
 | 
					    ev.senderUuid = envelope.sourceUuid;
 | 
				
			||||||
    ev.senderDevice = envelope.sourceDevice;
 | 
					    ev.senderDevice = envelope.sourceDevice;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    const groupIdBuffer = groupId ? groupId.toArrayBuffer() : null;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    ev.typing = {
 | 
					    ev.typing = {
 | 
				
			||||||
      typingMessage,
 | 
					      typingMessage,
 | 
				
			||||||
      timestamp: timestamp ? timestamp.toNumber() : Date.now(),
 | 
					      timestamp: timestamp ? timestamp.toNumber() : Date.now(),
 | 
				
			||||||
      groupId:
 | 
					      groupId:
 | 
				
			||||||
        groupId && groupId.buffer.byteLength < 45
 | 
					        groupIdBuffer && groupIdBuffer.byteLength <= 16
 | 
				
			||||||
          ? groupId.toString('binary')
 | 
					          ? groupId.toString('binary')
 | 
				
			||||||
          : null,
 | 
					          : null,
 | 
				
			||||||
      groupV2Id:
 | 
					      groupV2Id:
 | 
				
			||||||
        groupId && groupId.buffer.byteLength >= 45
 | 
					        groupIdBuffer && groupIdBuffer.byteLength > 16
 | 
				
			||||||
          ? groupId.toString('base64')
 | 
					          ? groupId.toString('base64')
 | 
				
			||||||
          : null,
 | 
					          : null,
 | 
				
			||||||
      started:
 | 
					      started:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue