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:
giomfo
2017-03-08 18:54:20 +01:00
parent 864312ca35
commit 81f4975174
14 changed files with 33 additions and 31 deletions
+1 -1
View File
@@ -876,7 +876,7 @@
NSString* tagOrder = [room.mxSession tagOrderToBeAtIndex:newPath.row from:oldPos withTag:dstRoomTag];
NSLog(@"[RecentsDataSource] Update the room %@ [%@] tag from %@ to %@ with tag order %@", room.state.roomId, room.vectorDisplayname, oldRoomTag, dstRoomTag, tagOrder);
NSLog(@"[RecentsDataSource] Update the room %@ [%@] tag from %@ to %@ with tag order %@", room.state.roomId, room.riotDisplayname, oldRoomTag, dstRoomTag, tagOrder);
[room replaceTag:oldRoomTag
byTag:dstRoomTag