Drag and drop for chat/chatroom dialog

Bug #146697 reported by sander
2
Affects Status Importance Assigned to Milestone
Coccinella
Fix Committed
Wishlist
Mats

Bug Description

1) When you drag and drop an online contact from your roster to a chatroom window, an invitation dialog is opened with the contact ID field and chatroom information filled in (I know the latter is currently not yet available).

2) When you drag and drop an offline contact from your roster to a chat window, a dialog will appear to initiate a roster item exchange for this contact (needs implementation of this XEP first).

3) It also should be possible to drag a group. Then all online people in this group will be invited.

4) It also should be possible to make a selection of multiple people (e.g. using Shift and/or Ctrl) and then drag and drop all of them at once to invite all these people.

5) When you drag and drop an online contact from your roster to a chat window, a context menu will appear with the options "Exchange Contact", "Chat", "Convert to Chatroom" and "Cancel". With the "Convert to Chatroom" option, an invitation dialog is opened with the contact ID field and chatroom information filled in (I know the latter is currently not yet available). This invitation is send to both contacts!

sander (s-devrieze)
Changed in coccinella:
assignee: nobody → matsben
importance: Undecided → Wishlist
sander (s-devrieze)
description: updated
Revision history for this message
Mats (matsben) wrote :

Started with 1) and run into problems directly. The roster supports both text/plain and text/uri-list as source types and when dropping it happens to pick text/uri-list which points to a file since the chat send text widget is a registered drop target for files. Hmmmm...

Changed in coccinella:
status: New → Confirmed
Revision history for this message
Mats (matsben) wrote :

Most parts of this should now work.
However, the distinction of offline and online contacts in 1) and 2) I strongly dislike since this can be very confusing with different behaviors depending on these features. Besides, a contact can change status while dragging it!
5) is similar to KDE DnD which I don't like either. The first interpretation of an invitation when dropping a contact is the most natural one. The Invite dialog is now more flexible since it accepts several contact IDs, either from a DnD to chat window or directly to its first entry from the roster. No manual way to adjust the number of contact ID entries though. This is only tested inviting a single contact since limited by the components of my "computer lab."

Changed in coccinella:
status: Confirmed → Fix Committed
Revision history for this message
Mats (matsben) wrote :

Forgot to say that I treat online/offline contacts the same. Good/bad?

Revision history for this message
sander (s-devrieze) wrote :

At least it should not be possible to drag to contacts that are offline.

Also, I found this serious bug on Linux that you should fix before next release: when I drag a contact the cursor changes into a square with a plus. When I release the mouse button this cursor DOES NOT change (==the serious bug). This is a serious issue because it blocks the whole desktop from being used. The only way to work again in Psi or other applications is to use the keyboard to close the invite dialog. The problem is that most people will probably not think about doing this or even don't know how to use their keyboard...so their only solution will be to reset the computer!!! /me changed this bug to critical for obvious reasons ;-)

Revision history for this message
sander (s-devrieze) wrote :

What's the status of this?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.