diff options
author | George Hazan <george.hazan@gmail.com> | 2023-11-14 12:46:28 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-11-14 12:46:28 +0300 |
commit | 9d45fb3bd79a2d81d8d95b2ee50c1d1a74e14b54 (patch) | |
tree | eb146c94fc0b816eab674aad056b05b244053add /src/mir_app | |
parent | f5eca925f55c8405afd6b60ecf11980451a77013 (diff) |
NewStory: fix for unknown events in group chats
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/chat_manager.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mir_app/src/chat_manager.cpp b/src/mir_app/src/chat_manager.cpp index 589c03610d..1f6efed99e 100644 --- a/src/mir_app/src/chat_manager.cpp +++ b/src/mir_app/src/chat_manager.cpp @@ -195,11 +195,13 @@ LOGINFO* SM_AddEvent(SESSION_INFO *si, GCEVENT *gce, bool bIsHighlighted) LOGINFO *li = new LOGINFO(gce);
li->bIsHighlighted = bIsHighlighted;
- if (si->pMI->bDatabase && gce->hEvent) {
+ if (si->pMI->bDatabase) {
li->hEvent = gce->hEvent;
- if (si->arEvents.find(li)) {
- delete li;
- return nullptr;
+ if (gce->hEvent) {
+ if (si->arEvents.find(li)) {
+ delete li;
+ return nullptr;
+ }
}
}
else li->hEvent = si->iLastEvent++;
|