Skip to content

Commit

Permalink
Fix: Navigation to message via quote click didn't always work
Browse files Browse the repository at this point in the history
  • Loading branch information
scottnonnenberg-signal committed Feb 8, 2019
1 parent 2624a6a commit 1a7df91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/views/conversation_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -708,9 +708,9 @@

// Look for message in memory first, which would tell us if we could scroll to it
const targetMessage = this.model.messageCollection.find(item => {
const messageAuthor = item.getContact().id;
const messageAuthor = item.getContact();

if (author !== messageAuthor) {
if (!messageAuthor || author !== messageAuthor.id) {
return false;
}
if (id !== item.get('sent_at')) {
Expand Down

0 comments on commit 1a7df91

Please sign in to comment.