diff options
author | George Hazan <george.hazan@gmail.com> | 2024-09-15 18:12:22 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-09-15 18:12:22 +0300 |
commit | 285a9b30de435bcb016a2fb4073aa76da31042a9 (patch) | |
tree | a11883922bb4382223ab956f63f184b3d16fed83 | |
parent | 6379adc8ad721692e934589bf0d1532ef82a8139 (diff) |
fixes #4674 (Telegram: после удаления события новое событие появляется лишь при переоткрытии чата)
-rw-r--r-- | plugins/NewStory/src/history_array.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp index f83e764288..dff781605f 100644 --- a/plugins/NewStory/src/history_array.cpp +++ b/plugins/NewStory/src/history_array.cpp @@ -775,6 +775,8 @@ void HistoryArray::remove(int id) }
else {
iLastPageCounter--;
- memset(&pages[nPages].data[iLastPageCounter], 0, sizeof(ItemData));
+ auto &pLast = pages[nPages].data[iLastPageCounter];
+ memset(&pLast, 0, sizeof(ItemData));
+ pLast.savedHeight = -1;
}
}
|