Support lid me user in message id (#3570)

Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
This commit is contained in:
Shir Serlui 2025-05-30 16:38:48 +03:00 • committed by GitHub
commit 494a18ddb2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -214,9 +214,13 @@ 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,
to: chat.id,