[telepathy] [Bug 316677] Group chats do weird stuff

David Edmundson kde at davidedmundson.co.uk
Thu Mar 21 01:32:39 GMT 2013


https://bugs.kde.org/show_bug.cgi?id=316677

--- Comment #2 from David Edmundson <kde at davidedmundson.co.uk> ---
Re-reading the documentation I have a mistake in the group channel request:

   if (m_channel->canInviteContacts()) {
        m_channel->inviteContacts(QList<Tp::ContactPtr>() << contact);
    }
    else {
        QList<Tp::ContactPtr> contacts;
        contacts << contact;
        contacts << m_channel->groupContacts(false).toList();
        m_account->createConferenceTextChat(QList<Tp::ChannelPtr>() <<
m_channel, contacts);
    }

the 
        contacts << m_channel->groupContacts(false).toList();

is wrong,
the second parameter is only additional contacts who should be invited so this
line is not needed.
Will need help testing.

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Kde-telepathy-bugs mailing list