示例#1
0
文件: Xmpp.cs 项目: filiperamon/Beet
        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.");
            }
        }