Discard wrong avatar urls

(cherry picked from commit ed5bb270ff)
This commit is contained in:
Carl Schwan
2023-07-21 15:48:46 +02:00
parent c5f6a6607e
commit 80c3253a6e

View File

@@ -1941,7 +1941,7 @@ QByteArray NeoChatRoom::roomAcountDataJson(const QString &eventType)
QUrl NeoChatRoom::avatarForMember(NeoChatUser *user) const
{
const auto &url = memberAvatarUrl(user->id());
if (url.isEmpty()) {
if (url.isEmpty() || url.scheme() != "mxc"_ls) {
return {};
}
auto avatar = connection()->makeMediaUrl(url);