Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

Commit

Permalink
keep messages dedupe function - closes #9
Browse files Browse the repository at this point in the history
  • Loading branch information
tboeckmann committed Nov 12, 2019
1 parent 26b6882 commit 60de68a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/inbox/inbox-messages/inbox-messages.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ export class InboxMessagesComponent implements OnInit, OnChanges {

/**
* Get the inbox messages, filtered by 'currently selected account' > 'searchtext'.
* Dedupe message array - workaround for dupe messages @TODO: waiting on dupe bugfix in mailchain
*/
getCurrentAccountInboxMessages(){
var inboxMessagesFilteredByAddress = this.addressPipe.transform(
Expand All @@ -209,6 +208,7 @@ export class InboxMessagesComponent implements OnInit, OnChanges {
this.searchText
)
this.currentAccountInboxMessages = []

// Dedupe messages
this.currentAccountInboxMessages = this.mailchainService.dedupeMessagesByIds(inboxMessagesFilteredByAddressSearch)

Expand Down

0 comments on commit 60de68a

Please sign in to comment.