Reorder functions
// FREEBIE
This commit is contained in:
parent
62c90e3925
commit
213dbdefd2
1 changed files with 11 additions and 11 deletions
|
@ -232,17 +232,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
getNotificationIcon: function() {
|
|
||||||
return new Promise(function(resolve) {
|
|
||||||
var avatar = this.getAvatar();
|
|
||||||
if (avatar.url) {
|
|
||||||
resolve(avatar.url);
|
|
||||||
} else {
|
|
||||||
resolve(new Whisper.IdenticonSVGView(avatar).getDataUrl());
|
|
||||||
}
|
|
||||||
}.bind(this));
|
|
||||||
},
|
|
||||||
|
|
||||||
updateAvatarUrl: function(silent) {
|
updateAvatarUrl: function(silent) {
|
||||||
this.revokeAvatarUrl();
|
this.revokeAvatarUrl();
|
||||||
var avatar = this.get('avatar');
|
var avatar = this.get('avatar');
|
||||||
|
@ -279,6 +268,17 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
getNotificationIcon: function() {
|
||||||
|
return new Promise(function(resolve) {
|
||||||
|
var avatar = this.getAvatar();
|
||||||
|
if (avatar.url) {
|
||||||
|
resolve(avatar.url);
|
||||||
|
} else {
|
||||||
|
resolve(new Whisper.IdenticonSVGView(avatar).getDataUrl());
|
||||||
|
}
|
||||||
|
}.bind(this));
|
||||||
|
},
|
||||||
|
|
||||||
resolveConflicts: function(conflict) {
|
resolveConflicts: function(conflict) {
|
||||||
var number = conflict.number;
|
var number = conflict.number;
|
||||||
var identityKey = conflict.identityKey;
|
var identityKey = conflict.identityKey;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue