mirror of
https://github.com/chatmail/core.git
synced 2026-04-06 07:32:12 +03:00
test: add test_webxdc_download_on_demand
The test checks that if webxdc update is too large to download with the current `download_limit`, it is applied afterwards when the user manually downloads the update message.
This commit is contained in:
@@ -486,6 +486,9 @@ class Message:
|
||||
dc_msg = ffi.gc(lib.dc_get_msg(self.account._dc_context, self.id), lib.dc_msg_unref)
|
||||
return lib.dc_msg_get_download_state(dc_msg)
|
||||
|
||||
def download_full(self) -> None:
|
||||
lib.dc_download_full_msg(self.account._dc_context, self.id)
|
||||
|
||||
|
||||
# some code for handling DC_MSG_* view types
|
||||
|
||||
|
||||
Reference in New Issue
Block a user