Proper regeneration for groups

This commit is contained in:
SillyLossy
2023-04-20 18:18:07 +03:00
parent f591961dd7
commit f28850220a
2 changed files with 48 additions and 17 deletions

View File

@@ -38,6 +38,7 @@ import {
resetSelectedGroup,
select_group_chats,
regenerateGroup,
group_generation_id,
} from "./scripts/group-chats.js";
import {
@@ -2230,6 +2231,7 @@ function saveReply(type, getMessage, this_mes_is_name) {
} else {
console.log('entering chat update routine for non-swipe post');
chat[chat.length] = {};
chat[chat.length - 1]['extra'] = {};
chat[chat.length - 1]['name'] = name2;
chat[chat.length - 1]['is_user'] = false;
chat[chat.length - 1]['is_name'] = this_mes_is_name;
@@ -2245,6 +2247,7 @@ function saveReply(type, getMessage, this_mes_is_name) {
}
chat[chat.length - 1]['is_name'] = true;
chat[chat.length - 1]['force_avatar'] = avatarImg;
chat[chat.length - 1]['extra']['gen_id'] = group_generation_id;
}
saveImageToMessage(img, chat[chat.length - 1]);