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

Method removeInboxRowByMsgid

src/bitmessageqt/__init__.py:1755–1767  ·  view source on GitHub ↗
(self, msgid)

Source from the content-addressed store, hash-verified

1753 sent.item(i, 3).setText(textToDisplay)
1754
1755 def removeInboxRowByMsgid(self, msgid): # msgid and inventoryHash are the same thing
1756 for inbox in ([
1757 self.ui.tableWidgetInbox,
1758 self.ui.tableWidgetInboxSubscriptions,
1759 self.ui.tableWidgetInboxChans]):
1760 for i in range(inbox.rowCount()):
1761 if msgid == str(inbox.item(i, 3).data(QtCore.Qt.UserRole).toPyObject()):
1762 self.updateStatusBar(
1763 _translate("MainWindow", "Message trashed"))
1764 treeWidget = self.widgetConvert(inbox)
1765 self.propagateUnreadCount(inbox.item(i, 1 if inbox.item(i, 1).type == AccountMixin.SUBSCRIPTION else 0).data(QtCore.Qt.UserRole), self.getCurrentFolder(treeWidget), treeWidget, 0)
1766 inbox.removeRow(i)
1767 break
1768
1769 def newVersionAvailable(self, version):
1770 self.notifiedNewVersion = ".".join(str(n) for n in version)

Callers

nothing calls this directly

Calls 6

updateStatusBarMethod · 0.95
widgetConvertMethod · 0.95
propagateUnreadCountMethod · 0.95
getCurrentFolderMethod · 0.95
_translateFunction · 0.90
dataMethod · 0.45

Tested by

no test coverage detected