librelist archives

« back to archive

Disable history of conversations.

Disable history of conversations.

From:
Alexey Zhiltsov
Date:
2014-05-28 @ 12:24
Hi.

By default converse.js stores all history of conversations somewhere in
browser.
Even clearing of the browser cache do not clears the history.
I have found that history can be cleared with /clear command, but this is
inconvinient.
How can I disable saving of messages completely, or clear it after brouser
closes.
It will be brilliant to have configuration option for that.
But, as workaround, patch for source code will be good as well.

Thank you in advance for your reply.

Re: [conversejs] Disable history of conversations.

From:
Jc Brand
Date:
2014-05-28 @ 12:31
There was a similar request about this earlier:
https://github.com/jcbrand/converse.js/issues/160

What I wrote there applies to messages as well, they are also stored in the
browser's localStorage via Backbone.localStorage.

It should be relatively straightforward to add a configuration option that
disables Backbone.localStorage.

Patches are very welcome ;)

On Wed, May 28, 2014 at 03:24:50PM +0300, Alexey Zhiltsov wrote:
>    Hi.
> 
>    By default converse.js stores all history of conversations somewhere in
>    browser.
>    Even clearing of the browser cache do not clears the history.
>    I have found that history can be cleared with /clear command, but this is
>    inconvinient.
>    How can I disable saving of messages completely, or clear it after brouser
>    closes.
>    It will be brilliant to have configuration option for that.
>    But, as workaround, patch for source code will be good as well.
> 
>    Thank you in advance for your reply.

Re: [conversejs] Disable history of conversations.

From:
Alexey Zhiltsov
Date:
2014-06-02 @ 08:19
Dear JC.

I have commented out lines 2401 2402 from your answer here
https://github.com/jcbrand/converse.js/issues/160 but unfortunately with
wiped history I have lost possibility to close chat windows. (Cross sign
not working any more.)

Please advise.



On Wed, May 28, 2014 at 3:31 PM, JC Brand <lists@opkode.com> wrote:

> There was a similar request about this earlier:
> https://github.com/jcbrand/converse.js/issues/160
>
> What I wrote there applies to messages as well, they are also stored in the
> browser's localStorage via Backbone.localStorage.
>
> It should be relatively straightforward to add a configuration option that
> disables Backbone.localStorage.
>
> Patches are very welcome ;)
>
> On Wed, May 28, 2014 at 03:24:50PM +0300, Alexey Zhiltsov wrote:
> >    Hi.
> >
> >    By default converse.js stores all history of conversations somewhere
> in
> >    browser.
> >    Even clearing of the browser cache do not clears the history.
> >    I have found that history can be cleared with /clear command, but
> this is
> >    inconvinient.
> >    How can I disable saving of messages completely, or clear it after
> brouser
> >    closes.
> >    It will be brilliant to have configuration option for that.
> >    But, as workaround, patch for source code will be good as well.
> >
> >    Thank you in advance for your reply.
>



-- 
Alexey Zhiltsov.
mobile: +357 96 868718
skype: shooter_13

Re: [conversejs] Disable history of conversations.

From:
Jc Brand
Date:
2014-06-02 @ 09:15
On Mon, Jun 02, 2014 at 11:19:32AM +0300, Alexey Zhiltsov wrote:
>    Dear JC.
> 
>    I have commented out lines 2401 2402 from your answer here
>    [1]https://github.com/jcbrand/converse.js/issues/160 but unfortunately
>    with wiped history I have lost possibility to close chat windows. (Cross
>    sign not working any more.)
> 
>    Please advise.

I think the best way to solve this is to have a Backbone.sessionStorage library
just like the Backbone.localStorage one and then to allow converse.js to be
configured to use the one or the other.

I've created a ticket for this:
https://github.com/jcbrand/converse.js/issues/176
  
>    On Wed, May 28, 2014 at 3:31 PM, JC Brand <[2]lists@opkode.com> wrote:
> 
>      There was a similar request about this earlier:
>      [3]https://github.com/jcbrand/converse.js/issues/160
> 
>      What I wrote there applies to messages as well, they are also stored in
>      the
>      browser's localStorage via Backbone.localStorage.
> 
>      It should be relatively straightforward to add a configuration option
>      that
>      disables Backbone.localStorage.
> 
>      Patches are very welcome ;)
>      On Wed, May 28, 2014 at 03:24:50PM +0300, Alexey Zhiltsov wrote:
>      >    Hi.
>      >
>      >    By default converse.js stores all history of conversations
>      somewhere in
>      >    browser.
>      >    Even clearing of the browser cache do not clears the history.
>      >    I have found that history can be cleared with /clear command, but
>      this is
>      >    inconvinient.
>      >    How can I disable saving of messages completely, or clear it after
>      brouser
>      >    closes.
>      >    It will be brilliant to have configuration option for that.
>      >    But, as workaround, patch for source code will be good as well.
>      >
>      >    Thank you in advance for your reply.
> 
>    --
>    Alexey Zhiltsov.
>    mobile: +357 96 868718
>    skype: shooter_13
> 
> References
> 
>    Visible links
>    1. https://github.com/jcbrand/converse.js/issues/160
>    2. mailto:lists@opkode.com
>    3. https://github.com/jcbrand/converse.js/issues/160