Skip to content

Commit 55cfdd9

Browse files
Merge pull request #1101 from mimi89999/anon-gc
Show occupant nickname in occupant view for anonymous conferences
2 parents 5a8e7ab + 224abd0 commit 55cfdd9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ChatSecure/Classes/View Controllers/OTRRoomOccupantsViewController.swift

+4
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,9 @@ extension OTRRoomOccupantsViewController: UITableViewDataSource {
609609
} else if let jid = roomOccupant.realJID ?? roomOccupant.jid {
610610
// Create temporary buddy for anonymous room members
611611
let buddy = OTRXMPPBuddy(jid: jid, accountId: account)
612+
if let occupantNickname = jid.resource {
613+
buddy.username = occupantNickname
614+
}
612615
buddy.trustLevel = .untrusted
613616
var status = OTRThreadStatus.offline
614617
if let jid = roomOccupant.jid,
@@ -617,6 +620,7 @@ extension OTRRoomOccupantsViewController: UITableViewDataSource {
617620
}
618621
OTRBuddyCache.shared.setThreadStatus(status, for: buddy, resource: roomOccupant.jid?.bare)
619622
cell.setThread(buddy, account: nil)
623+
cell.accessoryView = nil
620624
}
621625

622626
if isYou {

0 commit comments

Comments
 (0)