Skip to content

Commit

Permalink
Fixed a bug that caused new roles and channels not to sort.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Jan 2, 2025
1 parent 7f75ec8 commit 6fb6cbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commissar-user.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ class CommissarUser {
if (friend_role_id === this.friend_role_id) {
return;
}
fc.friendRoleCache[this.friend_role_id] = this.commissar_id;
this.friend_role_id = friend_role_id;
fc.friendRoleCache[friend_role_id] = this.commissar_id;
await this.updateFieldInDatabase('friend_role_id', this.friend_role_id);
}

Expand All @@ -228,8 +228,8 @@ class CommissarUser {
if (friend_voice_room_id === this.friend_voice_room_id) {
return;
}
fc.friendRoomCache[this.friend_voice_room_id] = this.commissar_id;
this.friend_voice_room_id = friend_voice_room_id;
fc.friendRoomCache[friend_voice_room_id] = this.commissar_id;
await this.updateFieldInDatabase('friend_voice_room_id', this.friend_voice_room_id);
}

Expand Down

0 comments on commit 6fb6cbf

Please sign in to comment.