Commit 0dd4b3e5 authored by JC Brand's avatar JC Brand

Remove messages from localStorage when calling /clear

parent d402ed8e
...@@ -749,7 +749,7 @@ ...@@ -749,7 +749,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") {
...@@ -3068,7 +3068,7 @@ ...@@ -3068,7 +3068,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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment