X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fnetworkmodel.cpp;h=582b0084e1bd7454851d95eeeefeffb26a26b7c7;hb=a83608156c3a561a0ba6d9625303040c02329550;hp=147605c7d31fe52d78d1289d9fb3365f2fcb6585;hpb=78decd5f8d1a149fc0e62e01bd6b2886e0feadfe;p=quassel.git diff --git a/src/client/networkmodel.cpp b/src/client/networkmodel.cpp index 147605c7..582b0084 100644 --- a/src/client/networkmodel.cpp +++ b/src/client/networkmodel.cpp @@ -298,7 +298,7 @@ void BufferItem::setActivityLevel(BufferInfo::ActivityLevel level) void BufferItem::clearActivityLevel() { - if (Client::coreFeatures().testFlag(Quassel::Feature::BufferActivitySync)) { + if (Client::isCoreFeatureEnabled(Quassel::Feature::BufferActivitySync)) { // If the core handles activity sync, clear only the highlight flag _activity &= ~BufferInfo::Highlight; } else { @@ -307,7 +307,7 @@ void BufferItem::clearActivityLevel() _firstUnreadMsgId = MsgId(); // FIXME remove with core proto v11 - if (!(Client::coreFeatures() & Quassel::SynchronizedMarkerLine)) { + if (!Client::isCoreFeatureEnabled(Quassel::Feature::SynchronizedMarkerLine)) { _markerLineMsgId = _lastSeenMsgId; } @@ -318,7 +318,7 @@ void BufferItem::clearActivityLevel() void BufferItem::updateActivityLevel(const Message &msg) { // If the core handles activity, and this message is not a highlight, ignore this - if (Client::coreFeatures().testFlag(Quassel::Feature::BufferActivitySync) && !msg.flags().testFlag(Message::Highlight)) { + if (Client::isCoreFeatureEnabled(Quassel::Feature::BufferActivitySync) && !msg.flags().testFlag(Message::Highlight)) { return; } @@ -344,7 +344,7 @@ void BufferItem::updateActivityLevel(const Message &msg) Message::Types type; // If the core handles activities, ignore types - if (Client::coreFeatures().testFlag(Quassel::Feature::BufferActivitySync)) { + if (Client::isCoreFeatureEnabled(Quassel::Feature::BufferActivitySync)) { type = Message::Types(); } else { type = msg.type(); @@ -434,7 +434,7 @@ void BufferItem::setLastSeenMsgId(MsgId msgId) _lastSeenMsgId = msgId; // FIXME remove with core protocol v11 - if (!(Client::coreFeatures() & Quassel::SynchronizedMarkerLine)) { + if (!Client::isCoreFeatureEnabled(Quassel::Feature::SynchronizedMarkerLine)) { if (!isCurrentBuffer()) _markerLineMsgId = msgId; }