From 86b15328c186b5b952474d5f0f667d24c16e02ab Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Mon, 21 Sep 2020 15:59:56 +1000 Subject: [PATCH] drop the prefix for group on the incoming message object --- ts/receiver/dataMessage.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ts/receiver/dataMessage.ts b/ts/receiver/dataMessage.ts index 813b8b883..0818e037e 100644 --- a/ts/receiver/dataMessage.ts +++ b/ts/receiver/dataMessage.ts @@ -644,10 +644,8 @@ export async function handleMessageEvent(event: MessageEvent): Promise { // - 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; }