diff options
| author | George Hazan <george.hazan@gmail.com> | 2024-05-30 17:35:15 +0300 | 
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2024-05-30 17:35:15 +0300 | 
| commit | 48409fcaea4cda67ce0642bf6c39ffd636a1294d (patch) | |
| tree | 65d0a3b8f040736c48592db8994132d74b71ccec /src/core/stdmsg | |
| parent | c7cd8e2918509efe5fe74f35d442826cca2f5df3 (diff) | |
StdMsg: unread Discord chats are opened as private chat windows on startup
Diffstat (limited to 'src/core/stdmsg')
| -rw-r--r-- | src/core/stdmsg/src/msgs.cpp | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/stdmsg/src/msgs.cpp b/src/core/stdmsg/src/msgs.cpp index 88d2beccff..cba06ad66e 100644 --- a/src/core/stdmsg/src/msgs.cpp +++ b/src/core/stdmsg/src/msgs.cpp @@ -280,6 +280,9 @@ static void RestoreUnreadMessageAlerts(void)  	OBJLIST<MSavedEvent> arEvents(10, NumericKeySortT);
  	for (auto &hContact : Contacts()) {
 +		if (Contact::IsGroupChat(hContact) || !Proto_GetBaseAccountName(hContact))
 +			continue;
 +
  		for (MEVENT hDbEvent = db_event_firstUnread(hContact); hDbEvent; hDbEvent = db_event_next(hContact, hDbEvent)) {
  			bool autoPopup = false;
  | 
