Skip to content

Commit

Permalink
Log when conversation names are nullified
Browse files Browse the repository at this point in the history
This should help us track down the source of disappearing conversation names, as
seen in #1428.

// FREEBIE
  • Loading branch information
liliakai committed Sep 6, 2017
1 parent 8caecd5 commit 3073ef7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions js/models/conversations.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@

this.on('change:avatar', this.updateAvatarUrl);
this.on('destroy', this.revokeAvatarUrl);

this.on('change:name', function(model, value, options) {
if (typeof value !== 'string' || !value.length) {
var e = new Error(model.id + ' name changed to ' + value);
console.log(e.stack);
}
});
},

isMe: function() {
Expand Down

0 comments on commit 3073ef7

Please sign in to comment.