mirror of
https://github.com/chatmail/core.git
synced 2026-05-04 13:56:30 +03:00
move get_protection_msg() to stock.rs as stock_protection_msg()
This commit is contained in:
@@ -721,8 +721,8 @@ async fn add_parts(
|
||||
.await?;
|
||||
set_better_msg(
|
||||
mime_parser,
|
||||
chat_id
|
||||
.get_protection_msg(context, ProtectionStatus::Protected, from_id)
|
||||
context
|
||||
.stock_protection_msg(ProtectionStatus::Protected, from_id)
|
||||
.await,
|
||||
);
|
||||
} else if mime_parser.is_system_message == SystemMessage::ChatProtectionDisabled {
|
||||
@@ -731,8 +731,8 @@ async fn add_parts(
|
||||
.await?;
|
||||
set_better_msg(
|
||||
mime_parser,
|
||||
chat_id
|
||||
.get_protection_msg(context, ProtectionStatus::Unprotected, from_id)
|
||||
context
|
||||
.stock_protection_msg(ProtectionStatus::Unprotected, from_id)
|
||||
.await,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user