mirror of
https://github.com/chatmail/core.git
synced 2026-05-09 01:46:30 +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,
|
self,
|
||||||
context: &Context,
|
context: &Context,
|
||||||
protect: ProtectionStatus,
|
protect: ProtectionStatus,
|
||||||
promote: bool,
|
promoted: bool,
|
||||||
from_id: u32,
|
from_id: u32,
|
||||||
) -> Result<(), Error> {
|
) -> Result<(), Error> {
|
||||||
let msg_text = self.get_protection_msg(context, protect, from_id).await;
|
let msg_text = self.get_protection_msg(context, protect, from_id).await;
|
||||||
|
|
||||||
if promote {
|
if promoted {
|
||||||
let mut msg = Message::default();
|
let mut msg = Message::default();
|
||||||
msg.viewtype = Viewtype::Text;
|
msg.viewtype = Viewtype::Text;
|
||||||
msg.text = Some(msg_text);
|
msg.text = Some(msg_text);
|
||||||
|
|||||||
Reference in New Issue
Block a user