mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Reorder functions
// FREEBIE
This commit is contained in:
@@ -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) {
|
||||
this.revokeAvatarUrl();
|
||||
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) {
|
||||
var number = conflict.number;
|
||||
var identityKey = conflict.identityKey;
|
||||
|
||||
Reference in New Issue
Block a user