processone / xmpp-messenger-ios

iOS XMPP Messenger Framework
MIT License
219 stars 93 forks source link

Chat marker for MUC CHAT #86

Open shraddha-patel-1891 opened 5 years ago

shraddha-patel-1891 commented 5 years ago

Hello, we are making chat application using xmpp framework . In single chat successfully implement chat message marker like read , sent ,displayed but in this thing not possible in MUC(group) chat in ios using xmpp framwork.

so any one have implement MUC chat marker then please help me.give us some basic idea how to implement MUC chat marker?

Thanks.

Jaydeepinx commented 5 years ago

Hello Shraddha,

I have implemented chat marker for Group Chat. Basically for Group chat you need to use one to one chat marker i.e., (consider 4 Members in group) if user-1 is sending message in group-1. When user-2 receives/read message user-2 will send chat marker to user-1 in one to one chat. same scenario for user-2 and user-3.

Hope it'll help you. Thanks.

shraddha-patel-1891 commented 5 years ago

Hello, jaydeepinx, Thanks for reply.i will be tried your solution and update you.

we have more question related to leave group :- got following kind of response in leave group if you have any solution then please help me.

<iq xmlns="jabber:client" lang="en" to="278460234280@server/103489846018672359706530" from="5hivi5vqi0@conference.server" type="error" id="Boundary-391588AA-7F97-479D-AAE4- 0DF8CDE47936"><query xmlns="http://jabber.org/protocol/muc#admin"><item affiliation=“none” jid="278460234280@server"></item></query><error code="405" type="cancel"><not-allowed xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"></not-allowed><text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" lang="en">Changing role/affiliation is not allowed</text></error></iq>

Thanks

HardikKardani commented 5 years ago

Regarding leave room error which stanza you pass?