Use more descriptive property name

This commit is contained in:
Loren Burkholder 2021-09-04 20:53:33 -04:00
parent 3a86d44c1e
commit 356723fe06
6 changed files with 12 additions and 12 deletions

View file

@ -77,7 +77,7 @@ RoomlistModel::roleNames() const
{Tags, "tags"},
{ParentSpaces, "parentSpaces"},
{IsDirect, "isDirect"},
{DirectChatAvatarMxid, "directChatAvatarMxid"},
{DirectChatOtherUserId, "directChatOtherUserId"},
};
}
@ -133,8 +133,8 @@ RoomlistModel::data(const QModelIndex &index, int role) const
}
case Roles::IsDirect:
return room->isDirect();
case Roles::DirectChatAvatarMxid:
return room->directChatAvatarMxid();
case Roles::DirectChatOtherUserId:
return room->directChatOtherUserId();
default:
return {};
}