mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 18:06:35 +03:00
clarify that signature of add_protection_msg() takes chat-promoted parameter
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user