qxmpp-project / qxmpp

Cross-platform C++ XMPP client and server library
412 stars 196 forks source link

Joining MUC does not work... #321

Open myzinsky opened 4 years ago

myzinsky commented 4 years ago

I'm joining a room like this:

auto room = xmpp->getMucManager()->addRoom("test@xxx.xxx");
room->setNickName("FooBar");
room->setPassword("fooBar");
room->join();

however it is not joining. The join functions returns false, however is isJoined() returns false and the nickname is set correctly. So the problem seams to be somehow related to the sent presence:

Mo. Nov. 9 22:55:16 2020 SENT <presence to="test@xxx.xxx/FooBar"><x xmlns="http://jabber.org/protocol/muc"><password>fooBar</password></x><c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="https://github.com/qxmpp-project/qxmpp" ver="CF0PqxtM9pj0Cz/BqjJTqkH605c="/></presence>

Any ideas what's going wrong?

myzinsky commented 4 years ago

Somehow the 'from' is missing, or?

myzinsky commented 3 years ago

Any news on this?

lnjX commented 3 years ago

The from is not missing, that's automatically added by the server.

myzinsky commented 3 years ago

So what could be the problem then?

lnjX commented 3 years ago

Sorry, I haven't used QXmpp's MUC implementation yet and I don't have much timer currently to test it. Unfortunately no idea. The only thing I can maybe ask is whether the MUC server returns anything?