Frug / AJAX-Chat

A fully customizable web chat implemented in JavaScript, PHP and MySQL which integrates nicely with common forum systems like phpBB, MyBB, FluxBB, SMF and vBulletin. A Flash and Ruby based socket connection can be used to boost performance.
http://frug.github.io/AJAX-Chat/
546 stars 300 forks source link

clearChatList() Not working properly #231

Closed mahtesham closed 8 years ago

mahtesham commented 8 years ago

Hi, I added a option 'Delete All' to delete all the messages from the chat window,i am calling method this.clearChatList(); on click of 'Delete All' button but it's deleting only 5 messages from chat windows and also it's slow. Can you please tell me better option to do this. Thanks in advance.

fjwilson commented 8 years ago

I thought there was already a /clear function written into the latest version. It works on mine.

On Tue, Mar 22, 2016 at 4:37 AM, mahtesham notifications@github.com wrote:

Hi, I added a option 'Delete All' to delete all the messages from the chat window,i am calling method this.clearChatList(); on click of 'Delete All' button but it's deleting only 5 messages from chat windows and also it's slow. Can you please tell me better option to do this. Thanks in advance.

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/Frug/AJAX-Chat/issues/231

Frug commented 8 years ago

/clear was added in 0.8.7 https://github.com/Frug/AJAX-Chat/blob/62447049aff00e356d959b36d9eac123e6ec3038/chat/changelog.txt#L832

If you want to actually purge the database, though, you need to do that yourself.

mahtesham commented 8 years ago

yes i am using the latest version 0.8.7 and i am calling the same method as against command /clear i.e clearChatList() . yes i want to delete messages from database also.

Thanks for the help.