Gracefully shut down database operations before app exit
This commit is contained in:
parent
2822f4ce40
commit
6300256a3e
5 changed files with 161 additions and 11 deletions
|
@ -844,7 +844,13 @@
|
|||
return this.OUR_NUMBER;
|
||||
},
|
||||
getContact() {
|
||||
return ConversationController.getOrCreate(this.getSource(), 'private');
|
||||
const source = this.getSource();
|
||||
|
||||
if (!source) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return ConversationController.getOrCreate(source, 'private');
|
||||
},
|
||||
isOutgoing() {
|
||||
return this.get('type') === 'outgoing';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue