Subject: Matrix.Ui How to changing muc properties
Hi Alex,
What's the correct way to change the properties from xdata using Matrix.Ui?
Thanks.
What's the correct way to change the properties from xdata using Matrix.Ui?
- private void PresenceCallback(object sender, PresenceEventArgs e)
- {
- var mucX = e.Presence.MucUser;
- if (mucX.HasStatus(201)) // 201 = room is awaiting configuration.
- {
- mm.RequestRoomConfiguration(_roomJid, InstantRoomResult);
- }
- ....
- ....
- }
- private void InstantRoomResult(object sender, IqEventArgs args)
- {
- if (args.Iq.Type == Matrix.Xmpp.IqType.result)
- {
- var query = args.Iq.Element<Matrix.Xmpp.Muc.Owner.OwnerQuery>();
- if (query != null)
- {
- var xdata = query.XData;
- xdc.CreateForm(xdata);
- // here. Exists any Method for changing the muc properties?
- xdc. ???????????
- var xdataresponse = xdc.CreateResponse();
- mm.SubmitRoomConfiguration(_roomJid, xdataresponse);
- }
- }
- }
Thanks.