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