From 68d7a22c25014f09c0346cf1a2501b4fd1fd882a Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Wed, 24 Jan 2018 21:22:12 +0900 Subject: Typo fixes for the previous commit Requires deleting the cache :( --- avatar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3