Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] get roster when connected #74

Closed
LightZam opened this issue Sep 3, 2015 · 3 comments
Closed

[Question] get roster when connected #74

LightZam opened this issue Sep 3, 2015 · 3 comments

Comments

@LightZam
Copy link
Contributor

LightZam commented Sep 3, 2015

i think developer should has the chance to disable automatic get roster when connected, sometimes it will reconnect by network problem, but developer do not want get roster again

QXmppRosterManger.cpp

check = connect(client, SIGNAL(connected()),
                this, SLOT(_q_connected()));

void QXmppRosterManager::_q_connected()
{
    QXmppRosterIq roster;
    roster.setType(QXmppIq::Get);
    roster.setFrom(client()->configuration().jid());
    d->rosterReqId = roster.id();
    if (client()->isAuthenticated())
        client()->sendPacket(roster);
}

if you agree this opinion, i will pull request

@0xd34df00d
Copy link
Member

0xd34df00d commented Sep 3, 2015 via email

@LightZam
Copy link
Contributor Author

LightZam commented Sep 4, 2015

okay, it looks like this effort belong to server side...

@lnjX
Copy link
Member

lnjX commented Apr 5, 2020

Another solution is, if you don't want to use the roster at all (for example as a bot only sending messages), you can also disable the roster manager completely by removing the extension.

The proper issue for roster versioning can be found here #164, so I'm closing this.

@lnjX lnjX closed this as completed Apr 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants