mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 00:24:43 +02:00
Bug Fix - default room avatar for an empty room should not be your own face
Changes: - If the room has only two members, use the avatar of the second member even if this member is invited. - The plain solid circle (without initial) is used only for an "empty room" without display name (We name "empty room" a room in which the current user is the only active member).
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
Copyright 2016 OpenMarket Ltd
|
||||
Copyright 2017 Vector Creations Ltd
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@@ -80,7 +81,7 @@
|
||||
_roomDataSource = [[RoomDataSource alloc] initWithPeekingRoom:peekingRoom andInitialEventId:_eventId];
|
||||
[_roomDataSource finalizeInitialization];
|
||||
|
||||
_roomName = peekingRoom.vectorDisplayname;
|
||||
_roomName = peekingRoom.riotDisplayname;
|
||||
_roomAvatarUrl = peekingRoom.state.avatar;
|
||||
|
||||
_roomTopic = [MXTools stripNewlineCharacters:peekingRoom.state.topic];;
|
||||
|
||||
Reference in New Issue
Block a user