Fix method participant on sendMessage (#3778)

* Fix method participant on sendMessage

* Update Utils.js

* Update Utils.js
This commit is contained in:
BenyFilho 2025-09-05 18:20:36 -03:00 • committed by GitHub
commit c9665438f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -249,7 +249,7 @@ exports.LoadUtils = () => {
if (typeof chat.id?.isGroup === 'function' && chat.id.isGroup()) { if (typeof chat.id?.isGroup === 'function' && chat.id.isGroup()) {
from = chat.groupMetadata && chat.groupMetadata.isLidAddressingMode ? lidUser : meUser; from = chat.groupMetadata && chat.groupMetadata.isLidAddressingMode ? lidUser : meUser;
participant = window.Store.WidFactory.toUserWidOrThrow(from); participant = window.Store.WidFactory.asUserWidOrThrow(from);
} }
const newMsgKey = new window.Store.MsgKey({ const newMsgKey = new window.Store.MsgKey({