chatgui: клик по медиа с отсутствующим файлом — сброс пометки и перекачка
This commit is contained in:
1 parent
d237dfec7c
commit
7198154106
2 files changed
+15
-8
No files matched your search
@@ -970,6 +970,10 @@ void chat_core_attachment_download(struct UTUN_INSTANCE* inst, const char* chann
|
||||
uint8_t author_sig[64]; memcpy(author_sig, sig_blob, 64);
|
||||
sqlite3_finalize(st);
|
||||
|
||||
/* сбрасываем пометку «файл есть»: файл мог быть вычищен кешем, а local_attrs ещё "fl".
|
||||
по завершении md_download_done_cb снова запишет st=fl (успех) или st=er (ошибка). */
|
||||
chat_core_update_local_attrs(inst, channel_id, (uint64_t)db_ts, author_sig, "{}");
|
||||
|
||||
DEBUG_INFO(DEBUG_CATEGORY_GENERAL, "%s: manual download ch=%s id=%lld ct=%s file=%s",
|
||||
CC_ID, channel_id, (long long)msg_id, content_type, base_filename);
|
||||
md_start_download(inst, body, bi, channel_id, base_filename, (uint64_t)db_ts, author_sig, (uint64_t)author_node_id, msg_id, content_type);
|
||||
|
||||
Reference in new issue
Block a user