------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=122987
ogoffart kde org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From ogoffart kde org 2006-06-07 18:30 -------
SVN commit 549161 by ogoffart:
Fix Bug 122987: voice-call is always shown as available in chat-window
BUG: 122987
M +13 -1 jabberchatsession.cpp
--- branches/kopete/0.12/kopete/protocols/jabber/jabberchatsession.cpp
#549160:549161
@ -67,8 +67,20 @
KAction *jabber_voicecall = new KAction( i18n("Voice call" ),
"voicecall", 0, members().getFirst(), SLOT(voiceCall ()), actionCollection(),
"jabber_voicecall" );
setInstance(protocol->instance());
- jabber_voicecall->setEnabled(true);
+ jabber_voicecall->setEnabled( false );
+
+ Kopete::ContactPtrList chatMembers = members ();
+ if ( chatMembers.first () )
+ {
+ // Check if the current contact support Voice calls, also
honour lock by default.
+ // FIXME: we should use the active ressource
+ JabberResource *bestResource = account()->resourcePool()->
bestJabberResource(
static_cast<JabberBaseContact*>(chatMembers.first())->rosterItem().jid() );
+ if( bestResource && bestResource->features().canVoice() )
+ {
+ jabber_voicecall->setEnabled( true );
+ }
+ }
#endif
_______________________________________________
kopete-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kopete-devel