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

Method get_sender_chat

python/src/deltachat/message.py:285–290  ·  view source on GitHub ↗

return the 1:1 chat with the sender of this message. :returns: :class:`deltachat.chat.Chat` instance

(self)

Source from the content-addressed store, hash-verified

283 lib.dc_msg_set_override_sender_name(self._dc_msg, as_dc_charpointer(name))
284
285 def get_sender_chat(self):
286 """return the 1:1 chat with the sender of this message.
287
288 :returns: :class:`deltachat.chat.Chat` instance
289 """
290 return self.get_sender_contact().get_chat()
291
292 def get_sender_contact(self):
293 """return the contact of who wrote the message.

Callers

nothing calls this directly

Calls 2

get_sender_contactMethod · 0.95
get_chatMethod · 0.80

Tested by

no test coverage detected