Compare commits

..

No commits in common. "5bd2466c54acd9663a70f5d6111b133e2a1aa4f5" and "c3088f9046d0b6b97b640c7c6fc9ec354523eb27" have entirely different histories.

3 changed files with 0 additions and 17 deletions

View File

@ -13,7 +13,6 @@ const subscriptionPreApprovalXmlns = 'urn:xmpp:features:pre-approval';
// XEP-0004 // XEP-0004
const dataFormsXmlns = 'jabber:x:data'; const dataFormsXmlns = 'jabber:x:data';
const formVarFormType = 'FORM_TYPE';
// XEP-0030 // XEP-0030
const discoInfoXmlns = 'http://jabber.org/protocol/disco#info'; const discoInfoXmlns = 'http://jabber.org/protocol/disco#info';
@ -24,7 +23,6 @@ const extendedAddressingXmlns = 'http://jabber.org/protocol/address';
// XEP-0045 // XEP-0045
const mucXmlns = 'http://jabber.org/protocol/muc'; const mucXmlns = 'http://jabber.org/protocol/muc';
const roomInfoFormType = 'http://jabber.org/protocol/muc#roominfo';
// XEP-0054 // XEP-0054
const vCardTempXmlns = 'vcard-temp'; const vCardTempXmlns = 'vcard-temp';

View File

@ -1,7 +1,4 @@
import 'package:collection/collection.dart';
import 'package:moxxmpp/src/jid.dart'; import 'package:moxxmpp/src/jid.dart';
import 'package:moxxmpp/src/namespaces.dart';
import 'package:moxxmpp/src/xeps/xep_0004.dart';
import 'package:moxxmpp/src/xeps/xep_0030/types.dart'; import 'package:moxxmpp/src/xeps/xep_0030/types.dart';
class RoomInformation { class RoomInformation {
@ -10,7 +7,6 @@ class RoomInformation {
required this.jid, required this.jid,
required this.features, required this.features,
required this.name, required this.name,
this.roomInfo,
}); });
/// Constructs a [RoomInformation] object from a [DiscoInfo] object. /// Constructs a [RoomInformation] object from a [DiscoInfo] object.
@ -25,11 +21,6 @@ class RoomInformation {
name: discoInfo.identities name: discoInfo.identities
.firstWhere((i) => i.category == 'conference') .firstWhere((i) => i.category == 'conference')
.name!, .name!,
roomInfo: discoInfo.extendedInfo.firstWhereOrNull((form) {
final field = form.getFieldByVar(formVarFormType);
return field?.type == 'hidden' &&
field?.values.first == roomInfoFormType;
}),
); );
/// The JID of the Multi-User Chat (MUC) room. /// The JID of the Multi-User Chat (MUC) room.
@ -40,9 +31,6 @@ class RoomInformation {
/// The name or title of the Multi-User Chat (MUC) room. /// The name or title of the Multi-User Chat (MUC) room.
final String name; final String name;
/// The data form containing room information.
final DataForm? roomInfo;
} }
/// The used message-id and an optional origin-id. /// The used message-id and an optional origin-id.

View File

@ -282,9 +282,6 @@ class MUCManager extends XmppManagerBase {
} }
// Check if this is the message reflection. // Check if this is the message reflection.
if (message.id == null) {
return state;
}
final pending = final pending =
(message.id!, state.extensions.get<StableIdData>()?.originId); (message.id!, state.extensions.get<StableIdData>()?.originId);
if (fromJid.resource == roomState.nick && if (fromJid.resource == roomState.nick &&