private void xmppclient_OnRosterEnd(object sender, Matrix.EventArgs e) { System.Diagnostics.Debug.WriteLine("\n Zalogowano \n"); _MucManager = new MucManager(xmppclient); //_MucManager.EnterRoom(new Jid("*****@*****.**"), "gracz1"); xmppclient.SendPresence(Show.Chat); _MucManager.EnterRoomAsync(new Jid("*****@*****.**"), "gracz1"); _MucManager.EnterRoomAsync(new Jid("*****@*****.**"), "gracz1"); }
public async void AddGroup(string groupName) { string jid = groupName + "@" + _mucServer; Log.Info("joining group " + jid + " as " + this._jid); Presence x = await mucManager.EnterRoomAsync(jid, this._jid.Split('@')[0]); var mucX = x.MucUser; //set if (mucX.HasStatus(201)) { await mucManager.RequestInstantRoomAsync(jid); Log.Info("Accepted MUC defaults."); } }