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:
Steve Howell
2020-01-01 14:42:46 +00:00
committed by Tim Abbott
parent 629ec1aa8b
commit 71dae1b92a
4 changed files with 13 additions and 19 deletions

View File

@@ -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) {