drop the prefix for group on the incoming message object

pull/1349/head
Audric Ackermann 5 years ago
parent 92cc9a7cdd
commit 86b15328c1
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -644,10 +644,8 @@ export async function handleMessageEvent(event: MessageEvent): Promise<void> {
// - group.id if it is a group message // - group.id if it is a group message
let conversationId = id; let conversationId = id;
if (isGroupMessage) { if (isGroupMessage) {
/* handle one part of the group logic here: // remove the prefix from the source object so this is correct for all other
handle requesting info of a new group, message.group.id = message.group.id.replace(PubKey.PREFIX_GROUP_TEXTSECURE, '');
dropping an admin only update from a non admin, ...
*/
conversationId = message.group.id; conversationId = message.group.id;
} }

Loading…
Cancel
Save