Skip to content

Commit

Permalink
fix actions from trusted contacts tab GitHub issue #158
Browse files Browse the repository at this point in the history
  • Loading branch information
zlatinb committed Jun 24, 2022
1 parent 0499fb1 commit f4f0002
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -455,10 +455,10 @@ class MainFrameController {

@ControllerAction
void browseFromTrusted() {
int row = view.getSelectedContactsTableRow()
int row = view.getSelectedContactsTableRow(true)
if (row < 0)
return
Persona p = model.contacts[row].persona
Persona p = model.trustedContacts[row].persona

String groupId = UUID.randomUUID().toString()
def params = [:]
Expand All @@ -470,10 +470,10 @@ class MainFrameController {

@ControllerAction
void browseCollectionsFromTrusted() {
int row = view.getSelectedContactsTableRow()
int row = view.getSelectedContactsTableRow(true)
if (row < 0)
return
Persona p = model.contacts[row].persona
Persona p = model.trustedContacts[row].persona

UUID uuid = UUID.randomUUID()
def params = [:]
Expand Down Expand Up @@ -942,10 +942,10 @@ class MainFrameController {

@ControllerAction
void messageFromTrusted() {
int row = view.getSelectedContactsTableRow()
int row = view.getSelectedContactsTableRow(true)
if (row < 0)
return
PersonaOrProfile persona = model.contacts[row]
PersonaOrProfile persona = model.trustedContacts[row]

def params = [:]
params.recipientsPOP = new HashSet<>(Collections.singletonList(persona))
Expand Down

0 comments on commit f4f0002

Please sign in to comment.