mirror of
https://github.com/chatmail/core.git
synced 2026-05-23 00:36:32 +03:00
refactor: create_status_update_record: Remove double check of info_msg_id
This commit is contained in:
@@ -367,8 +367,7 @@ impl Context {
|
|||||||
.get_overwritable_info_msg_id(&instance, from_id)
|
.get_overwritable_info_msg_id(&instance, from_id)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
if info_msg_id.is_some() && status_update_item.href.is_none() {
|
if let (Some(info_msg_id), None) = (info_msg_id, &status_update_item.href) {
|
||||||
if let Some(info_msg_id) = info_msg_id {
|
|
||||||
chat::update_msg_text_and_timestamp(
|
chat::update_msg_text_and_timestamp(
|
||||||
self,
|
self,
|
||||||
instance.chat_id,
|
instance.chat_id,
|
||||||
@@ -378,7 +377,6 @@ impl Context {
|
|||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
notify_msg_id = info_msg_id;
|
notify_msg_id = info_msg_id;
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
notify_msg_id = chat::add_info_msg_with_cmd(
|
notify_msg_id = chat::add_info_msg_with_cmd(
|
||||||
self,
|
self,
|
||||||
|
|||||||
Reference in New Issue
Block a user