Fix compilation against changes in libQuotient

(cherry picked from commit f156551d4f)
This commit is contained in:
Tobias Fella
2024-09-13 15:35:02 +02:00
parent bed04cc59f
commit 21cabeb20c
3 changed files with 12 additions and 0 deletions

View File

@@ -88,7 +88,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);