Fix setDescription to use updated group metadata (#5793)

This commit is contained in:
kivirick 2026-02-03 23:38:57 +03:00 • committed by GitHub
commit 50485349c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -274,7 +274,8 @@ class GroupChat extends Chat {
async setDescription(description) {
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;
const chat = await window.WWebJS.getChat(chatId, { getAsModel: false });
let descId = chat.groupMetadata.descId;
let newId = await window.Store.MsgKey.newId();
try {
await window.Store.GroupUtils.setGroupDescription(chatWid, description, newId, descId);