Fix checking if sending to a group (#3592)
* Fix checking if sending to a group * chore: mark channels as done feature * refactor: add safety check for chat.id.isGroup --------- Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
This commit is contained in:
parent
30b3f5e82e
commit
ecb50450b7
1 changed files with 1 additions and 1 deletions
|
|
@ -247,7 +247,7 @@ exports.LoadUtils = () => {
|
|||
let from = chat.id.isLid() ? lidUser : meUser;
|
||||
let participant;
|
||||
|
||||
if (chat.isGroup) {
|
||||
if (typeof chat.id?.isGroup === 'function' && chat.id.isGroup()) {
|
||||
from = chat.groupMetadata && chat.groupMetadata.isLidAddressingMode ? lidUser : meUser;
|
||||
participant = window.Store.WidFactory.toUserWid(from);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue