mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 22:56:42 +02:00
Mh hopefully this unbreaks my last commit
This commit is contained in:
@@ -189,7 +189,13 @@ SipHandler::onPeerOnline( const QString& jid )
|
|||||||
ControlConnection* conn = new ControlConnection( Servent::instance() );
|
ControlConnection* conn = new ControlConnection( Servent::instance() );
|
||||||
|
|
||||||
const QString& nodeid = Database::instance()->dbid();
|
const QString& nodeid = Database::instance()->dbid();
|
||||||
conn->setName( jid ); //.left( jid.indexOf( "/" ) )
|
|
||||||
|
//TODO: this is a terrible assumption, help me clean this up, mighty muesli!
|
||||||
|
if ( jid.contains( "@conference.") )
|
||||||
|
conn->setName( jid );
|
||||||
|
else
|
||||||
|
conn->setName( jid.left( jid.indexOf( "/" ) ) );
|
||||||
|
|
||||||
conn->setId( nodeid );
|
conn->setId( nodeid );
|
||||||
|
|
||||||
Servent::instance()->registerOffer( key, conn );
|
Servent::instance()->registerOffer( key, conn );
|
||||||
|
Reference in New Issue
Block a user