mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 10:57:58 +00:00
Update PM unread counts more dynamically in the client.
When we process messages for unread counts, we now call people.pm_reply_user_string() to get a string of user ids, rather than using emails that may have changed since the message was originally created.
This commit is contained in:
@@ -188,6 +188,16 @@ exports.get_recipients = function (user_ids_string) {
|
||||
return names.join(', ');
|
||||
};
|
||||
|
||||
exports.pm_reply_user_string = function (message) {
|
||||
var user_ids = people.pm_with_user_ids(message);
|
||||
|
||||
if (!user_ids) {
|
||||
return;
|
||||
}
|
||||
|
||||
return user_ids.join(',');
|
||||
};
|
||||
|
||||
exports.pm_reply_to = function (message) {
|
||||
var user_ids = people.pm_with_user_ids(message);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user