mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 11:22:04 +00:00
refactor: Have pm_conversations take user_ids.
Instead of having our callers pass in a possibly non-canonical version of a user_ids_string, just have them pass in a list. The next commit will canonicalize the sort.
This commit is contained in:
@@ -54,9 +54,7 @@ exports.process_message_for_recent_private_messages = function (message) {
|
||||
pm_conversations.set_partner(user_id);
|
||||
});
|
||||
|
||||
const user_ids_string = user_ids.join(',');
|
||||
|
||||
pm_conversations.recent.insert(user_ids_string, message.id);
|
||||
pm_conversations.recent.insert(user_ids, message.id);
|
||||
};
|
||||
|
||||
exports.set_message_booleans = function (message) {
|
||||
|
||||
Reference in New Issue
Block a user