mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Avoid background thread overwriting outgoing messages
This commit is contained in:
@@ -70,6 +70,8 @@ extend(Backbone.LocalStorage.prototype, {
|
||||
|
||||
// Save the current state of the **Store** to *localStorage*.
|
||||
save: function() {
|
||||
var store = this.localStorage().getItem(this.name);
|
||||
this.records = _.union(this.records, store && store.split(","));
|
||||
this.localStorage().setItem(this.name, this.records.join(","));
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user