Skip to content

Commit

Permalink
Fix weird hero duplication bug I can't explain
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed Jul 14, 2023
1 parent 851b18d commit 0da3a29
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sync3/handler/connstate_live.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,8 @@ func (s *connStateLive) processGlobalUpdates(ctx context.Context, builder *Rooms
}
}

metadata := *rup.GlobalRoomMetadata()
metadata.RemoveHero(s.userID)
delta = s.lists.SetRoom(sync3.RoomConnMetadata{
RoomMetadata: metadata,
RoomMetadata: *rup.GlobalRoomMetadata(),
UserRoomData: *rup.UserRoomMetadata(),
LastInterestedEventTimestamps: bumpTimestampInList,
})
Expand Down

0 comments on commit 0da3a29

Please sign in to comment.