Fix compilation against changes in libQuotient

This commit is contained in:
Tobias Fella
2024-09-13 15:35:02 +02:00
parent 5c04eb85af
commit f156551d4f
3 changed files with 12 additions and 0 deletions

View File

@@ -87,7 +87,11 @@ QVariant UserListModel::data(const QModelIndex &index, int role) const
return memberId;
}
if (role == AvatarRole) {
#if Quotient_VERSION_MINOR > 8
return m_currentRoom->member(memberId).avatarUrl();
#else
return m_currentRoom->memberAvatar(memberId).url();
#endif
}
if (role == ObjectRole) {
return QVariant::fromValue(memberId);