fix: Correct method invocation (#3720)

This commit is contained in:
Jie 2025-08-27 06:34:43 +08:00 • committed by GitHub
commit 6d3078fd77
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.toUserWid(from); participant = window.Store.WidFactory.toUserWidOrThrow(from);
} }
const newMsgKey = new window.Store.MsgKey({ const newMsgKey = new window.Store.MsgKey({