MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / HandleTrashMessage

Method HandleTrashMessage

src/api.py:624–633  ·  view source on GitHub ↗
(self, params)

Source from the content-addressed store, hash-verified

622 return data
623
624 def HandleTrashMessage(self, params):
625 if len(params) == 0:
626 raise APIError(0, 'I need parameters!')
627 msgid = self._decode(params[0], "hex")
628
629 # Trash if in inbox table
630 helper_inbox.trash(msgid)
631 # Trash if in sent table
632 sqlExecute('''UPDATE sent SET folder='trash' WHERE msgid=?''', msgid)
633 return 'Trashed message (assuming message existed).'
634
635 def HandleTrashInboxMessage(self, params):
636 if len(params) == 0:

Callers

nothing calls this directly

Calls 3

_decodeMethod · 0.95
sqlExecuteFunction · 0.90
APIErrorClass · 0.85

Tested by

no test coverage detected