MCPcopy Create free account
hub / github.com/chatmail/core / add_info_msg

Function add_info_msg

src/chat.rs:5016–5029  ·  view source on GitHub ↗

Adds info message with a given text and `timestamp` to the chat.

(context: &Context, chat_id: ChatId, text: &str)

Source from the content-addressed store, hash-verified

5014
5015/// Adds info message with a given text and `timestamp` to the chat.
5016pub(crate) async fn add_info_msg(context: &Context, chat_id: ChatId, text: &str) -> Result<MsgId> {
5017 add_info_msg_with_cmd(
5018 context,
5019 chat_id,
5020 text,
5021 SystemMessage::Unknown,
5022 None,
5023 time(),
5024 None,
5025 None,
5026 None,
5027 )
5028 .await
5029}
5030
5031pub(crate) async fn update_msg_text_and_timestamp(
5032 context: &Context,

Callers 9

renderMethod · 0.85
get_securejoin_qrFunction · 0.85
send_to_chatFunction · 0.85
maybe_sendFunction · 0.85
start_protocolFunction · 0.85
test_unarchive_if_mutedFunction · 0.85
test_add_info_msgFunction · 0.85
test_info_not_referencedFunction · 0.85

Calls 2

add_info_msg_with_cmdFunction · 0.85
timeFunction · 0.85

Tested by 3

test_unarchive_if_mutedFunction · 0.68
test_add_info_msgFunction · 0.68
test_info_not_referencedFunction · 0.68