Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/majn/tgl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV V <vvaltman@aurum>2015-10-02 12:45:56 +0300
committerV V <vvaltman@aurum>2015-10-02 12:45:56 +0300
commit1de79e9a6c44a4dc45a59c917513827c4b1715df (patch)
tree4ce7ed9dac616be43a34eacd152971f54c59a1e0 /updates.c
parent1946822be5297c1462542e86238ee61de89d85e8 (diff)
fixed work with updates
Diffstat (limited to 'updates.c')
-rw-r--r--updates.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/updates.c b/updates.c
index 2d0142c..bf9a577 100644
--- a/updates.c
+++ b/updates.c
@@ -655,11 +655,12 @@ void tglu_work_update_short_chat_message (struct tgl_state *TLS, int check_only,
//int new = (!N || !(N->flags & TGLMF_CREATED));
struct tgl_message *M = tglf_fetch_alloc_message_short_chat (TLS, DS_U);
- assert (M);
if (check_only > 0 || (TLS->locks & TGL_LOCK_DIFF)) {
return;
}
+
+ assert (M);
if (1) {
bl_do_msg_update (TLS, &M->permanent_id);