clarify that signature of add_protection_msg() takes chat-promoted parameter

This commit is contained in:
B. Petersen
2020-10-09 00:43:36 +02:00
parent 03d86360d6
commit 1e2e042244

View File

@@ -258,12 +258,12 @@ impl ChatId {
self,
context: &Context,
protect: ProtectionStatus,
promote: bool,
promoted: bool,
from_id: u32,
) -> Result<(), Error> {
let msg_text = self.get_protection_msg(context, protect, from_id).await;
if promote {
if promoted {
let mut msg = Message::default();
msg.viewtype = Viewtype::Text;
msg.text = Some(msg_text);