mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 08:32:53 +02:00
Fix issue with joining public rooms with no guest access.
This fixes #2888. Signed-off-by: Chris Moos <chris@chrismoos.com>
This commit is contained in:
@@ -51,12 +51,17 @@
|
||||
if (self)
|
||||
{
|
||||
// Report public room data
|
||||
_roomName = publicRoom.name;
|
||||
_roomName = publicRoom.displayname;
|
||||
_roomAvatarUrl = publicRoom.avatarUrl;
|
||||
_roomTopic = publicRoom.topic;
|
||||
_roomAliases = publicRoom.aliases;
|
||||
_numJoinedMembers = publicRoom.numJoinedMembers;
|
||||
|
||||
// First try to fallback to the name if displayname isn't present
|
||||
if (!_roomName.length) {
|
||||
_roomName = publicRoom.name;
|
||||
}
|
||||
|
||||
if (!_roomName.length)
|
||||
{
|
||||
// Consider the room aliases to define a default room name.
|
||||
@@ -109,7 +114,9 @@
|
||||
} failure:^(NSError *error) {
|
||||
MXStrongifyAndReturnIfNil(self);
|
||||
|
||||
self->_roomName = self->_roomId;
|
||||
if(self->_roomName == nil || self->_roomName.length == 0) {
|
||||
self->_roomName = self->_roomId;
|
||||
}
|
||||
completion(NO);
|
||||
}];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user