Use new nio AsyncClient.mxc_to_http()
Has the correct behavior for all servers, e.g. mxc://privacytoosl.io/id → https://chat.privacytools.io/...
This commit is contained in:
@@ -57,7 +57,8 @@ HMxcImage {
|
||||
let isMxc = toOpen.startsWith("mxc://")
|
||||
|
||||
isMxc ?
|
||||
py.callCoro("mxc_to_http", [toOpen], callback) : callback(toOpen)
|
||||
py.callClientCoro(chatPage.userId, "mxc_to_http", [toOpen], callback) :
|
||||
callback(toOpen)
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user