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
let conversationId = id;
if (isGroupMessage) {
/* handle one part of the group logic here:
handle requesting info of a new group,
dropping an admin only update from a non admin, ...
*/
// remove the prefix from the source object so this is correct for all other
message.group.id = message.group.id.replace(PubKey.PREFIX_GROUP_TEXTSECURE, '');
conversationId = message.group.id;
}

Loading…
Cancel
Save