Compare commits
2 Commits
edc86a10b3
...
moxxmpp-v0
| Author | SHA1 | Date | |
|---|---|---|---|
| beff05765b | |||
| 3b7ded3b96 |
@@ -16,10 +16,10 @@ dependencies:
|
||||
version: 0.1.4+1
|
||||
moxxmpp:
|
||||
hosted: https://git.polynom.me/api/packages/Moxxy/pub
|
||||
version: 0.1.3+1
|
||||
version: 0.1.4
|
||||
moxxmpp_socket_tcp:
|
||||
hosted: https://git.polynom.me/api/packages/Moxxy/pub
|
||||
version: 0.1.2+5
|
||||
version: 0.1.2+6
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
## 0.1.4
|
||||
|
||||
- **FIX**: Only stanza-id required 'sid:0' support.
|
||||
- **FEAT**: Implement parsing and sending of retractions.
|
||||
|
||||
## 0.1.3+1
|
||||
|
||||
- **FIX**: Expose the error classes.
|
||||
|
||||
@@ -58,8 +58,16 @@ class StableIdManager extends XmppManagerBase {
|
||||
String? stanzaIdBy;
|
||||
final originIdTag = message.firstTag('origin-id', xmlns: stableIdXmlns);
|
||||
final stanzaIdTag = message.firstTag('stanza-id', xmlns: stableIdXmlns);
|
||||
if (originIdTag != null || stanzaIdTag != null) {
|
||||
logger.finest('Found Unique and Stable Stanza Id tag');
|
||||
|
||||
// Process the origin id
|
||||
if (originIdTag != null) {
|
||||
logger.finest('Found origin Id tag');
|
||||
originId = originIdTag.attributes['id']! as String;
|
||||
}
|
||||
|
||||
// Process the stanza id tag
|
||||
if (stanzaIdTag != null) {
|
||||
logger.finest('Found stanza Id tag');
|
||||
final attrs = getAttributes();
|
||||
final disco = attrs.getManagerById<DiscoManager>(discoManager)!;
|
||||
final result = await disco.discoInfoQuery(from.toString());
|
||||
@@ -68,17 +76,10 @@ class StableIdManager extends XmppManagerBase {
|
||||
logger.finest('Got info for ${from.toString()}');
|
||||
if (info.features.contains(stableIdXmlns)) {
|
||||
logger.finest('${from.toString()} supports $stableIdXmlns.');
|
||||
|
||||
if (originIdTag != null) {
|
||||
originId = originIdTag.attributes['id']! as String;
|
||||
}
|
||||
|
||||
if (stanzaIdTag != null) {
|
||||
stanzaId = stanzaIdTag.attributes['id']! as String;
|
||||
stanzaIdBy = stanzaIdTag.attributes['by']! as String;
|
||||
}
|
||||
stanzaId = stanzaIdTag.attributes['id']! as String;
|
||||
stanzaIdBy = stanzaIdTag.attributes['by']! as String;
|
||||
} else {
|
||||
logger.finest('${from.toString()} does not support $stableIdXmlns. Ignoring... ');
|
||||
logger.finest('${from.toString()} does not support $stableIdXmlns. Ignoring stanza id... ');
|
||||
}
|
||||
} else {
|
||||
logger.finest('Failed to find out if ${from.toString()} supports $stableIdXmlns. Ignoring... ');
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
name: moxxmpp
|
||||
description: A pure-Dart XMPP library
|
||||
version: 0.1.3+1
|
||||
version: 0.1.4
|
||||
homepage: https://codeberg.org/moxxy/moxxmpp
|
||||
publish_to: https://git.polynom.me/api/packages/Moxxy/pub
|
||||
|
||||
@@ -31,6 +31,6 @@ dev_dependencies:
|
||||
build_runner: ^2.1.11
|
||||
moxxmpp_socket_tcp:
|
||||
hosted: https://git.polynom.me/api/packages/Moxxy/pub
|
||||
version: ^0.1.2+5
|
||||
version: ^0.1.2+6
|
||||
test: ^1.16.0
|
||||
very_good_analysis: ^3.0.1
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
## 0.1.2+6
|
||||
|
||||
- Update a dependency to the latest release.
|
||||
|
||||
## 0.1.2+5
|
||||
|
||||
- Update a dependency to the latest release.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
name: moxxmpp_socket_tcp
|
||||
description: A socket for moxxmpp using TCP that implements the RFC6120 connection algorithm and XEP-0368
|
||||
version: 0.1.2+5
|
||||
version: 0.1.2+6
|
||||
homepage: https://codeberg.org/moxxy/moxxmpp
|
||||
publish_to: https://git.polynom.me/api/packages/Moxxy/pub
|
||||
|
||||
@@ -12,7 +12,7 @@ dependencies:
|
||||
meta: ^1.6.0
|
||||
moxxmpp:
|
||||
hosted: https://git.polynom.me/api/packages/Moxxy/pub
|
||||
version: ^0.1.3+1
|
||||
version: ^0.1.4
|
||||
|
||||
dev_dependencies:
|
||||
lints: ^2.0.0
|
||||
|
||||
Reference in New Issue
Block a user