Don't allow multiple chats with same contact
Bug #145185 reported by
sander
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Coccinella |
Fix Released
|
Low
|
Mats |
Bug Description
1) A user already has an open chat window or tab with a contact
2) The user tries to open a new chat with this contact.
3) Coccinella should open the exiting window or tab instead of opening a new window or tab. (Focus should move to this window or tab)
See also: http://
Changed in coccinella: | |
assignee: | nobody → matsben |
importance: | Undecided → Low |
Changed in coccinella: | |
milestone: | none → 0.96.4 |
Changed in coccinella: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
You mean when on the initiator side? Because by default, the Chat code is configured to keep a single chat window for any thread from a particular bare JID:
if {[info exists argsA(-thread)] && $config( chat,allow- multi-thread- per-jid) } {
set threadID $argsA(-thread)
set chattoken [GetTokenFrom chat threadid $threadID]
} else {
# Try to find a reasonable fallback for clients that fail here (Psi).
# Find if we have registered any chat for this jid 2/3.
set chattoken [GetTokenFrom chat jid [jlib::ESC $mjid2]*]
which is also confirmed: /Coccinella@ hp' to='d\<email address hidden>' xml:lang='sv' id='1' type='chat'>
<thread> 912ef4a- 7e348f97< /thread> <body>dsssasasa sa</body> </message> /Coccinella@ hp' to='d\<email address hidden>' xml:lang='sv' id='2' type='chat'>
<thread> 9e05a2c- 2cbf433c< /thread> <body>dsadsdaaa aaaaaaaaaaaaaaa aaaa</body> </message>
RECV: <message <email address hidden>
RECV: <message <email address hidden>
which inputs text in the same tab.