Skip to content

Commit

Permalink
Don't show notification for verified state change with yourself (#1454)
Browse files Browse the repository at this point in the history
* Don't show notifications for verified state change with yourself

It's confusing to users, and it really doesn't mean anything anyway.

FREEBIE

* Add log statement that we've suppressed a verified notification

FREEBIE
  • Loading branch information
scottnonnenberg committed Sep 8, 2017
1 parent 3a733ea commit 69af8d2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/models/conversations.js
Expand Up @@ -428,6 +428,11 @@
options = options || {};
_.defaults(options, {local: true});

if (this.isMe()) {
console.log('refusing to add verified change advisory for our own number');
return;
}

var lastMessage = this.get('timestamp') || Date.now();

console.log('adding verified change advisory for', this.id, id, lastMessage);
Expand Down

0 comments on commit 69af8d2

Please sign in to comment.