Discard wrong avatar urls

This commit is contained in:
Carl Schwan
2023-07-21 15:48:46 +02:00
parent c8b4da2b96
commit ed5bb270ff

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);