mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-04 18:29:19 +02:00
Emit DC_EVENT_MSGS_CHANGED from dc_prepare_msg()
This commit is contained in:
parent
b7bf637ca5
commit
38fff9c23f
2 changed files with 6 additions and 1 deletions
|
@ -25,6 +25,7 @@ class TestInCreation:
|
||||||
open(path, 'a').close()
|
open(path, 'a').close()
|
||||||
prepared_original = chat.prepare_file(path)
|
prepared_original = chat.prepare_file(path)
|
||||||
assert prepared_original.get_state().is_out_preparing()
|
assert prepared_original.get_state().is_out_preparing()
|
||||||
|
wait_msgs_changed(ac1, chat.id, prepared_original.id)
|
||||||
|
|
||||||
lp.sec("forward the message while still in creation")
|
lp.sec("forward the message while still in creation")
|
||||||
chat2 = ac1.create_group_chat("newgroup")
|
chat2 = ac1.create_group_chat("newgroup")
|
||||||
|
|
|
@ -2533,7 +2533,11 @@ uint32_t dc_prepare_msg(dc_context_t* context, uint32_t chat_id, dc_msg_t* msg)
|
||||||
}
|
}
|
||||||
|
|
||||||
msg->state = DC_STATE_OUT_PREPARING;
|
msg->state = DC_STATE_OUT_PREPARING;
|
||||||
return prepare_msg_common(context, chat_id, msg);
|
uint32_t msg_id = prepare_msg_common(context, chat_id, msg);
|
||||||
|
|
||||||
|
context->cb(context, DC_EVENT_MSGS_CHANGED, msg->chat_id, msg->id);
|
||||||
|
|
||||||
|
return msg_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue