mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 15:33:30 +00:00
bankruptcy: Clear unread counts for mentions.
This commit is contained in:
@@ -404,6 +404,16 @@ stream_data.get_stream_id = function () {
|
||||
}());
|
||||
|
||||
(function test_declare_bankruptcy() {
|
||||
var message = {
|
||||
id: 16,
|
||||
type: 'whatever',
|
||||
stream_id: 1999,
|
||||
subject: 'whatever',
|
||||
mentioned: true,
|
||||
};
|
||||
|
||||
unread.process_loaded_messages([message]);
|
||||
|
||||
unread.declare_bankruptcy();
|
||||
|
||||
var counts = unread.get_counts();
|
||||
|
||||
@@ -218,6 +218,7 @@ exports.process_read_message = function (message) {
|
||||
exports.declare_bankruptcy = function () {
|
||||
unread_privates = new Dict();
|
||||
exports.unread_topic_counter.clear();
|
||||
unread_mentioned = new Dict();
|
||||
};
|
||||
|
||||
exports.num_unread_current_messages = function () {
|
||||
|
||||
Reference in New Issue
Block a user