Optimize model upsert, ensure right type for roles
This commit is contained in:
@@ -72,7 +72,7 @@ function onTimelineEventReceived(
|
||||
"isLocalEcho": is_local_echo,
|
||||
"showNameLine": show_name_line,
|
||||
"translatable": translatable,
|
||||
"targetUserId": target_user_id || "",
|
||||
"targetUserId": target_user_id,
|
||||
}
|
||||
|
||||
// Replace any matching local echo
|
||||
|
@@ -6,7 +6,6 @@ function onAccountDeleted(user_id) {
|
||||
accounts.popWhere({"userId": user_id}, 1)
|
||||
}
|
||||
|
||||
// TODO: get updated from nio rooms
|
||||
function onUserUpdated(user_id, display_name, avatar_url, status_message) {
|
||||
users.upsert({"userId": user_id}, {
|
||||
"userId": user_id,
|
||||
|
Reference in New Issue
Block a user