Fix #4
This commit is contained in:
parent
655f16b044
commit
5fa69429a5
@ -1 +1 @@
|
|||||||
Subproject commit 98b469c21d7810ba17dc72c56c444a7b79668197
|
Subproject commit 43ca916f66ce9e1c876579d32c69f52ef9dd73fe
|
@ -14806,7 +14806,9 @@ void MessagesManager::on_message_deleted(Dialog *d, Message *m, bool is_permanen
|
|||||||
auto it = d->yet_unsent_thread_message_ids.find(m->top_thread_message_id);
|
auto it = d->yet_unsent_thread_message_ids.find(m->top_thread_message_id);
|
||||||
CHECK(it != d->yet_unsent_thread_message_ids.end());
|
CHECK(it != d->yet_unsent_thread_message_ids.end());
|
||||||
auto is_deleted = it->second.erase(m->message_id) > 0;
|
auto is_deleted = it->second.erase(m->message_id) > 0;
|
||||||
CHECK(is_deleted);
|
if (!is_deleted) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (it->second.empty()) {
|
if (it->second.empty()) {
|
||||||
d->yet_unsent_thread_message_ids.erase(it);
|
d->yet_unsent_thread_message_ids.erase(it);
|
||||||
}
|
}
|
||||||
@ -14814,7 +14816,9 @@ void MessagesManager::on_message_deleted(Dialog *d, Message *m, bool is_permanen
|
|||||||
|
|
||||||
cancel_send_deleted_message(d->dialog_id, m, is_permanently_deleted);
|
cancel_send_deleted_message(d->dialog_id, m, is_permanently_deleted);
|
||||||
|
|
||||||
CHECK(m->message_id.is_valid());
|
if (!m->message_id.is_valid()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
switch (d->dialog_id.get_type()) {
|
switch (d->dialog_id.get_type()) {
|
||||||
case DialogType::User:
|
case DialogType::User:
|
||||||
case DialogType::Chat:
|
case DialogType::Chat:
|
||||||
|
Loading…
Reference in New Issue
Block a user