mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Prefer non UserId as display names
This commit is contained in:
parent
6f065530ae
commit
f2ce910b16
1 changed files with 5 additions and 1 deletions
|
@ -331,7 +331,11 @@ void ChatPage::updateRoomState(RoomState &room_state, const QJsonArray &events)
|
|||
if (display_name.isEmpty())
|
||||
display_name = member.stateKey();
|
||||
|
||||
auto current_name = TimelineViewManager::DISPLAY_NAMES.value(member.stateKey());
|
||||
|
||||
if (current_name.isEmpty() || current_name == member.stateKey())
|
||||
TimelineViewManager::DISPLAY_NAMES.insert(member.stateKey(), display_name);
|
||||
|
||||
break;
|
||||
}
|
||||
case events::EventType::RoomPowerLevels: {
|
||||
|
|
Loading…
Reference in a new issue