Remove messages from localStorage when calling /clear
This commit is contained in:
parent
d402ed8e8e
commit
0dd4b3e52c
|
@ -749,7 +749,7 @@
|
|||
if (match) {
|
||||
if (match[1] === "clear") {
|
||||
this.$el.find('.chat-content').empty();
|
||||
this.model.messages.reset();
|
||||
this.model.messages.reset().localStorage._clear();
|
||||
return;
|
||||
}
|
||||
else if (match[1] === "help") {
|
||||
|
@ -3068,7 +3068,7 @@
|
|||
$.proxy(this.roster.rosterHandler, this.roster),
|
||||
null, 'presence', null);
|
||||
this.rosterview = new this.RosterView({'model':this.roster});
|
||||
}
|
||||
};
|
||||
|
||||
this.onConnected = function () {
|
||||
if (this.debug) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user