Skip to content
Snippets Groups Projects
Commit 44f735b5 authored by Vincent Texier's avatar Vincent Texier
Browse files

[fix] fix broken context menu send money on tx history

By removing uid in pubkey column
parent 5620e568
No related branches found
No related tags found
1 merge request!7750.50.0
......@@ -171,7 +171,10 @@ class HistoryTableModel(QAbstractTableModel):
for issuer in transfer.issuers:
identity = self.identities_service.get_identity(issuer)
if identity:
senders.append(issuer + " (" + identity.uid + ")")
# todo: add an uid column to store and display the uid of the senders
# otherwise the "pubkey + uid" break the context menu to send money
# senders.append(issuer + " (" + identity.uid + ")")
senders.append(issuer)
else:
senders.append(issuer)
......@@ -205,7 +208,10 @@ class HistoryTableModel(QAbstractTableModel):
for issuer in transfer.issuers:
identity = self.identities_service.get_identity(issuer)
if identity:
senders.append(issuer + " (" + identity.uid + ")")
# todo: add an uid column to store and display the uid of the receivers
# otherwise the "pubkey + uid" break the context menu to send money
# senders.append(issuer + " (" + identity.uid + ")")
senders.append(issuer)
else:
senders.append(issuer)
......@@ -238,7 +244,10 @@ class HistoryTableModel(QAbstractTableModel):
for receiver in transfer.receivers:
identity = self.identities_service.get_identity(receiver)
if identity:
receivers.append(receiver + " (" + identity.uid + ")")
# todo: add an uid column to store and display the uid of the receivers
# otherwise the "pubkey + uid" break the context menu to send money
# receivers.append(receiver + " (" + identity.uid + ")")
receivers.append(receiver)
else:
receivers.append(receiver)
......@@ -268,7 +277,10 @@ class HistoryTableModel(QAbstractTableModel):
amount = dividend.amount * 10 ** dividend.base
identity = self.identities_service.get_identity(dividend.pubkey)
if identity:
receiver = dividend.pubkey + " (" + identity.uid + ")"
# todo: add an uid column to store and display the uid of the receivers
# otherwise the "pubkey + uid" break the context menu to send money
# receiver = dividend.pubkey + " (" + identity.uid + ")"
receiver = dividend.pubkey
else:
receiver = dividend.pubkey
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment