2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Version 4.9.4: Workaround MSVC optimization bug.

When adding some de-optimizing code, like logging etc,
the issue disappears. This volatile workaround looks like it works.
This commit is contained in:
John Preston
2023-08-31 22:43:26 +04:00
parent b39bf11d9e
commit dff168c62e

View File

@@ -194,6 +194,11 @@ UnreadState MainList::unreadState() const {
result.chatsMuted = result.chats;
result.marksMuted = result.marks;
}
volatile auto touch = _unreadState.marks + _unreadState.marksMuted
+ _unreadState.messages + _unreadState.messagesMuted
+ _unreadState.chats + _unreadState.chatsMuted
+ _unreadState.reactions + _unreadState.reactionsMuted
+ _unreadState.mentions;
return result;
}