move get_protection_msg() to stock.rs as stock_protection_msg()

This commit is contained in:
B. Petersen
2020-10-13 13:06:37 +02:00
parent 9fc6bbf41f
commit 8425e23d82
3 changed files with 20 additions and 25 deletions

View File

@@ -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,
);
}