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

Function add_device_msg

src/chat.rs:4902–4908  ·  view source on GitHub ↗

Adds a message to device chat.

(
    context: &Context,
    label: Option<&str>,
    msg: Option<&mut Message>,
)

Source from the content-addressed store, hash-verified

4900
4901/// Adds a message to device chat.
4902pub async fn add_device_msg(
4903 context: &Context,
4904 label: Option<&str>,
4905 msg: Option<&mut Message>,
4906) -> Result<MsgId> {
4907 add_device_msg_with_importance(context, label, msg, false).await
4908}
4909
4910/// Returns true if device message with a given label was ever added to the device chat.
4911pub async fn was_device_msg_ever_added(context: &Context, label: &str) -> Result<bool> {

Callers 15

cmdlineFunction · 0.85
dc_add_device_msgFunction · 0.85
add_device_messageMethod · 0.85
maybe_warn_on_outdatedFunction · 0.85
decide_chat_assignmentFunction · 0.85
delete_exMethod · 0.85
donation_request_maybeFunction · 0.85
update_device_chatsMethod · 0.85
fetch_many_msgsMethod · 0.85
on_configure_completedFunction · 0.85

Calls 1

Tested by 9

test_delete_device_chatFunction · 0.68
test_archiveFunction · 0.68
test_pinnedFunction · 0.68