Skip to content

Commit

Permalink
The displayed room type is wrong for the unrestricted rooms and not s…
Browse files Browse the repository at this point in the history
…hown for Forums #445
  • Loading branch information
Philippe Loriaux committed Feb 8, 2022
1 parent 96f0763 commit 8276ef9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Riot/Utils/EventFormatter.m
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,9 @@ - (BOOL)session:(MXSession *)session updateRoomSummary:(MXRoomSummary *)summary
{
BOOL updated = [super session:session updateRoomSummary:summary withStateEvents:stateEvents roomState:roomState];

// Store in the room summary some additional information
updated |= [summary tc_updateWithStateEvents:stateEvents];

// Customisation for EMS Functional Members in direct rooms
if (BuildSettings.supportFunctionalMembers && summary.room.isDirect)
{
Expand Down
2 changes: 1 addition & 1 deletion Tchap/Extensions/MXRoomSummary.swift
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ enum RoomCategory {

/// Get the room category
@nonobjc func tc_roomCategory() -> RoomCategory {
let isJoinRulePublic = self.others["mxkEventFormatterisJoinRulePublic"] as? Bool ?? false
let isJoinRulePublic = self.joinRule == kMXRoomJoinRulePublic
let category: RoomCategory

if tc_isServerNotice() {
Expand Down
1 change: 1 addition & 0 deletions changelog.d/445.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix rooms statuses in Rooms list

0 comments on commit 8276ef9

Please sign in to comment.