Implement media cache
This commit is contained in:
parent
54091cf403
commit
29bd8b71d1
6 changed files with 63 additions and 35 deletions
|
|
@ -621,6 +621,9 @@ MatrixClient::fetchRoomAvatar(const QString &roomid, const QUrl &avatar_url)
|
|||
void
|
||||
MatrixClient::fetchCommunityAvatar(const QString &communityId, const QUrl &avatar_url)
|
||||
{
|
||||
if (avatar_url.isEmpty())
|
||||
return;
|
||||
|
||||
QList<QString> url_parts = avatar_url.toString().split("mxc://");
|
||||
|
||||
if (url_parts.size() != 2) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue