From 107cae9591d1b4ddc2041599947fb0f6ed57888b Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 26 Mar 2020 11:29:01 -0700 Subject: [PATCH] modules/client/sync/rooms/unread_notifications: Fix range options to counter. --- modules/client/sync/rooms/unread_notifications.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/client/sync/rooms/unread_notifications.cc b/modules/client/sync/rooms/unread_notifications.cc index 05f8c7c65..87f608277 100644 --- a/modules/client/sync/rooms/unread_notifications.cc +++ b/modules/client/sync/rooms/unread_notifications.cc @@ -249,8 +249,8 @@ ircd::m::sync::_highlight_count(const room &room, user::notifications::opts opts; opts.room_id = room.room_id; opts.only = "highlight"; - opts.from = b; - opts.to = a; + opts.from = range.second; + opts.to = range.first; const auto ret { notifications.count(opts)