Skip to content

Commit

Permalink
Merge pull request #451 from tchapgouv/phlpro/445
Browse files Browse the repository at this point in the history
The displayed room type is wrong for the unrestricted rooms
  • Loading branch information
Phl-Pro authored Feb 24, 2022
2 parents 3f49c98 + f36c9e9 commit 654f07a
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 654f07a

Please sign in to comment.