Move unread-related functions from zulip.js to unread.js.

(imported from commit efc0dd84c2cd30b0203b906af6991475d8a63985)
This commit is contained in:
Tim Abbott
2014-01-31 11:44:21 -05:00
parent c8d57fcafb
commit 004fd0eab8
10 changed files with 133 additions and 132 deletions

View File

@@ -125,7 +125,7 @@ function get_events_success(events) {
var msgs_to_update = _.map(event.messages, function (message_id) {
return msg_metadata_cache[message_id];
});
mark_messages_as_read(msgs_to_update, {from: "server"});
unread.mark_messages_as_read(msgs_to_update, {from: "server"});
break;
}
break;