diff --git a/src/structures/GroupChat.js b/src/structures/GroupChat.js index 51769a5..216bc06 100644 --- a/src/structures/GroupChat.js +++ b/src/structures/GroupChat.js @@ -153,8 +153,9 @@ class GroupChat extends Chat { const success = await this.client.pupPage.evaluate(async (chatId, description) => { const chatWid = window.Store.WidFactory.createWid(chatId); let descId = window.Store.GroupMetadata.get(chatWid).descId; + let newId = await window.Store.MsgKey.newId(); try { - await window.Store.GroupUtils.setGroupDescription(chatWid, description, window.Store.MsgKey.newId(), descId); + await window.Store.GroupUtils.setGroupDescription(chatWid, description, newId, descId); return true; } catch (err) { if(err.name === 'ServerStatusCodeError') return false; @@ -278,4 +279,4 @@ class GroupChat extends Chat { } -module.exports = GroupChat; \ No newline at end of file +module.exports = GroupChat;