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

Method accept

src/chat.rs:435–437  ·  view source on GitHub ↗

Accept the contact request. Unblocks the chat and scales up origin of contacts.

(self, context: &Context)

Source from the content-addressed store, hash-verified

433 ///
434 /// Unblocks the chat and scales up origin of contacts.
435 pub async fn accept(self, context: &Context) -> Result<()> {
436 self.accept_ex(context, Sync).await
437 }
438
439 pub(crate) async fn accept_ex(self, context: &Context, sync: sync::Sync) -> Result<()> {
440 let chat = Chat::load_from_db(context, self).await?;

Callers 15

accept_incoming_callMethod · 0.45
test_search_single_chatFunction · 0.45
send_recv_acceptMethod · 0.45
test_send_reactionFunction · 0.45
test_reaction_summaryFunction · 0.45
init_peer_channelsMethod · 0.45
test_can_communicateFunction · 0.45
test_can_reconnectFunction · 0.45
test_webxdc_resendFunction · 0.45

Calls 1

accept_exMethod · 0.80

Tested by 15

test_search_single_chatFunction · 0.36
send_recv_acceptMethod · 0.36
test_send_reactionFunction · 0.36
test_reaction_summaryFunction · 0.36
test_can_communicateFunction · 0.36
test_can_reconnectFunction · 0.36
test_webxdc_resendFunction · 0.36
check_addrsFunction · 0.36
test_subject_in_groupFunction · 0.36