aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--avatar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/avatar.cpp b/avatar.cpp
index d3e9cd29..44cad4e5 100644
--- a/avatar.cpp
+++ b/avatar.cpp
@@ -115,7 +115,7 @@ bool Avatar::updateUrl(const QUrl& newUrl)
// FIXME: Make it a library-wide constant and maybe even make the URL checker
// a Connection(?) method.
- if (newUrl.scheme() != "mxc://" || newUrl.path().count('/') != 2)
+ if (newUrl.scheme() != "mxc" || newUrl.path().count('/') != 1)
{
qCWarning(MAIN) << "Malformed avatar URL:" << newUrl.toDisplayString();
return false;