Merge pull request #1902 from H3rnand3zzz/feature/improved-history

Change DB structure
This commit is contained in:
Michael Vetter
2023-11-06 22:41:36 +01:00
committed by GitHub
4 changed files with 303 additions and 113 deletions

View File

@@ -432,8 +432,8 @@ chatwin_outgoing_msg(ProfChatWin* chatwin, const char* const message, char* id,
win_print_outgoing((ProfWin*)chatwin, enc_char, id, replace_id, message);
}
// save last id and message for LMC
if (id) {
// save last id and message for LMC in case if it's not LMC message
if (id && !replace_id) {
_chatwin_set_last_message(chatwin, id, message);
}
}