summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-07-15 20:05:31 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-07-15 20:05:31 +0300
commita9f02128a24d149579101e8dc2fc92b5069b8691 (patch)
treec97c31357612b866211a0ee2b91bda04f95d93c0 /include
parentRemove the v2 namespace from the http client (diff)
downloadnheko-a9f02128a24d149579101e8dc2fc92b5069b8691.tar.xz
Use the http link for video messages
Add method to convert matrix content URIs to http links
Diffstat (limited to 'include')
-rw-r--r--include/Utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/Utils.h b/include/Utils.h

index 7db405b1..8f9b7cff 100644 --- a/include/Utils.h +++ b/include/Utils.h
@@ -187,4 +187,8 @@ levenshtein_distance(const std::string &s1, const std::string &s2); QPixmap scaleImageToPixmap(const QImage &img, int size); + +//! Convert a Content Matrix URI to an HTTP link. +QString +mxcToHttp(const QUrl &url, const QString &server, int port); }