From 494a18ddb22d4d604e4b3863186b9311f6c10349 Mon Sep 17 00:00:00 2001 From: Shir Serlui <70711723+shirser121@users.noreply.github.com> Date: Fri, 30 May 2025 16:38:48 +0300 Subject: [PATCH] Support lid me user in message id (#3570) Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com> --- src/util/Injected/Utils.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/util/Injected/Utils.js b/src/util/Injected/Utils.js index a4f3ec4..8a9b349 100644 --- a/src/util/Injected/Utils.js +++ b/src/util/Injected/Utils.js @@ -214,8 +214,12 @@ exports.LoadUtils = () => { delete options.invokedBotWid; } - const meUser = window.Store.User.getMaybeMeUser(); + let meUser = window.Store.User.getMaybeMeUser(); const newId = await window.Store.MsgKey.newId(); + + if (chat.id.isGroup() && chat.groupMetadata.isLidAddressingMode) { + meUser = window.Store.User.getMaybeMeLidUser(); + } const newMsgId = new window.Store.MsgKey({ from: meUser,