Clarified minor details, again
authorJanne Koschinski <janne@kuschku.de>
Sun, 27 Aug 2017 00:46:52 +0000 (02:46 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Tue, 19 Dec 2017 20:09:04 +0000 (21:09 +0100)
src/client/networkmodel.cpp
src/uisupport/abstractbuffercontainer.cpp

index 0558a7e..1f8306d 100644 (file)
@@ -293,7 +293,12 @@ void BufferItem::setActivityLevel(BufferInfo::ActivityLevel level)
 
 void BufferItem::clearActivityLevel()
 {
-    _activity = BufferInfo::NoActivity;
+    if (Client::coreFeatures().testFlag(Quassel::Feature::BufferActivitySync)) {
+        // If the core handles activity sync, clear only the highlight flag
+        _activity &= ~BufferInfo::Highlight;
+    } else {
+        _activity = BufferInfo::NoActivity;
+    }
     _firstUnreadMsgId = MsgId();
 
     // FIXME remove with core proto v11
index ca9c101..0651d70 100644 (file)
@@ -126,9 +126,7 @@ void AbstractBufferContainer::setCurrentBuffer(BufferId bufferId)
 
     _currentBuffer = bufferId;
     showChatView(bufferId);
-    if (!Client::coreFeatures().testFlag(Quassel::Feature::BufferActivitySync)) {
-        Client::networkModel()->clearBufferActivity(bufferId);
-    }
+    Client::networkModel()->clearBufferActivity(bufferId);
     Client::setBufferLastSeenMsg(bufferId, _chatViews[bufferId]->lastMsgId());
     Client::backlogManager()->checkForBacklog(bufferId);
     setFocus();