mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-24 18:38:15 +01:00
Ensure that promises always resolve, or that rejections are okay
This commit is contained in:
@@ -636,7 +636,9 @@
|
||||
},
|
||||
|
||||
fetchMessages: function() {
|
||||
if (!this.id) { return false; }
|
||||
if (!this.id) {
|
||||
return Promise.reject('This conversation has no id!');
|
||||
}
|
||||
return this.messageCollection.fetchConversation(this.id, null, this.get('unreadCount'));
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user