Clear Button

domh87 - May 17, 2009 - 12:22
Project:Instant messenger
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Issue tags:chatroom
Description

would you be able to add a button that lets you clear old conversations?

#1

pahariwalla - May 17, 2009 - 20:36

OK - here's the deal... I added a "Clear" button, but I don't like how it works and I'd like some feedback before I commit anf changes. Please bear with me and tell me what you think.

1) Two users, Fred and Schmed are having a conversation. They each have the same conversation in their window.
2) Fred wants to Clear his screen. The only way to do this (in the current architecture, unfortunately), is to delete the database records.
3) Fred hits "Clear", and the database records for the conversation are deleted.
4) Schmed, unaware that Fred has deleted the records, continues to see the conversation until he navigates to another page, at which point the conversation suddenly disappears. He is surprised and confused, not knowing if he is still connected to Schmed, etc.

So .. one option would be for the system to send a message to Fred saying that Schmed has cleared the conversation. We hope that Fred notices this before he navigates to another page and loses the whole thing. No too pretty.

Another option is when Schemed hits "Clear", the system sends a message to Fred that Schemd *wants* to clear the conversation, and "Please hit Clear" to clear it. Then when Fred also hits clear, we delete the records ...

Ideas ?

p.s. I'm wondering why you want to clear it anyway? Would it be OK if instead of actually deleting the records, we make a button to "Talk to No One" so that when you hit it, we simply re-initialize the window so that you are "Talking to: No One". This would clear the window, but the conversation would remain as is and get deleted according to the normal deletion process.

Looking forward to any comments ...

#2

domh87 - May 18, 2009 - 08:33

i see what you mean for the conversation just to clear on someones screen may get confusing for people, your suggestion on making a talk to no one button maybe be useful so that someone could appear offline from the chat.

#3

pahariwalla - May 18, 2009 - 15:43

Commited: Please check http://drupal.org/node/405648 for "Last Updated " date > May 18, 2009 - 00:12 to see if tarball has been created

Added the "No One" link in the Friend Picker.

#4

pahariwalla - May 18, 2009 - 15:45
Status:active» closed

#5

BenK - October 10, 2009 - 19:58
Status:closed» active

I have a different need for a "clear" button. I'm using the module mainly for its chatroom functionality and I organize a series of scheduled chats on my site. After a chat is complete, I cut and paste the text into the node body field to save it as a transcript. Because each day's chat starts on a fresh topic, it doesn't make sense to have the old chat still visible.

In the current implementation, I'm forced to create a new user for each day's chat and then change the IM configuration page to specify the new user that will serve as the "chatroom" for the day.

So what I really need is a "clear conversation" button that only someone with the "administer IM" permission can use. Or better yet, create a "clear IM conversation" permission that could be assigned to a particular role.

Thoughts?

Cheers,
Ben

P.S. Thanks for the great module. I actually love the chatroom feature of this module because it is simple, lightweight, and easy to use.

P.P.S. I re-opened this issue because it seemed related. If you would rather than I open a new issue as a feature request, just let me know.

#6

pahariwalla - November 27, 2009 - 13:41
Issue tags:+chatroom

tagging

 
 

Drupal is a registered trademark of Dries Buytaert.