hotfix: newId and deviceType (#2196)
* update method generate Msg id, newId to newIdV2 * replace newId and await in version WA 2.2321.6 * fix deviceType
This commit is contained in:
parent
d8fd457914
commit
081b455fa5
1 changed files with 4 additions and 4 deletions
|
|
@ -245,11 +245,12 @@ exports.LoadUtils = () => {
|
|||
|
||||
const meUser = window.Store.User.getMaybeMeUser();
|
||||
const isMD = window.Store.MDBackend;
|
||||
|
||||
const newId = await window.Store.MsgKey.newId();
|
||||
|
||||
const newMsgId = new window.Store.MsgKey({
|
||||
from: meUser,
|
||||
to: chat.id,
|
||||
id: window.Store.MsgKey.newId(),
|
||||
id: newId,
|
||||
participant: isMD && chat.id.isGroup() ? meUser : undefined,
|
||||
selfDir: 'out',
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue