Ikjot Singh Dhody
3ebd9b86ec
feat(xep): Fix lint issues and use moxlib for result.
...
Signed-off-by: Ikjot Singh Dhody <ikjotsd@gmail.com>
2023-06-30 10:25:17 +05:30
a928c5c877
feat(xep): Also potentially return "generic" stanza errors
2023-06-29 21:12:30 +02:00
77a1acb0e7
fix(moxxmpp): Somewhat fix (and break) moxxmpp_socket_tcp integration tests
2023-06-25 12:47:47 +02:00
Ikjot Singh Dhody
a873edb9ec
feat(xep): Check for null nick before leaveRoom.
...
Signed-off-by: Ikjot Singh Dhody <ikjotsd@gmail.com>
2023-06-21 12:20:14 +05:30
Ikjot Singh Dhody
e6bd6d05cd
feat(xep): Remove NOOP cache access.
...
Signed-off-by: Ikjot Singh Dhody <ikjotsd@gmail.com>
2023-06-21 00:41:51 +05:30
b5efc2dfae
feat(xep): Expose new/replaced ratchets in the MessageEvent
2023-06-20 16:35:51 +02:00
Ikjot Singh Dhody
b7d53b8f47
feat(xep): Add docstings for the XEP-0045 routines
...
Signed-off-by: Ikjot Singh Dhody <ikjotsd@gmail.com>
2023-06-20 17:44:24 +05:30
Ikjot Singh Dhody
217c3ac236
feat(xep): Fix cache issue with join/leaveRoom.
...
Signed-off-by: Ikjot Singh Dhody <ikjotsd@gmail.com>
2023-06-20 17:38:30 +05:30
d35b955259
fix(xep): Accidentally left getUnackedStanzas exposed
2023-06-19 23:15:29 +02:00
30dca67fb6
feat(all): Remove freezed
...
Fixes #43 .
2023-06-19 23:11:58 +02:00
2db44e2f51
fix(xep): Fix resend behaviour leading to period disconnects
...
It seems that we were expecting acks "in the future" for old stanzas.
Also, this commit should prevent E2EE implementations from re-encrypting
resent stanzas.
Fixes #38 .
2023-06-19 22:55:50 +02:00
Ikjot Singh Dhody
51bca6c25d
feat(xep): XEP-0045 cache fixes.
...
Signed-off-by: Ikjot Singh Dhody <ikjotsd@gmail.com>
2023-06-19 18:40:39 +05:30
3621f2709a
chore(docs): Update changelog
2023-06-18 21:57:53 +02:00
9da6d319a3
feat(all): Use 0.5.0 of omemo_dart
2023-06-18 21:30:35 +02:00
Ikjot Singh Dhody
8728166a4d
feat(xep): Add cache and roomstate to MUC implementation.
...
Signed-off-by: Ikjot Singh Dhody <ikjotsd@gmail.com>
2023-06-18 20:49:13 +05:30
Ikjot Singh Dhody
1f1321b269
feat(xep): Small fixes - review cycle 1.
...
Signed-off-by: Ikjot Singh Dhody <ikjotsd@gmail.com>
2023-06-18 20:09:06 +05:30
9fd2daabb2
feat(xep): Adjust to more omemo_dart changes
2023-06-17 23:51:52 +02:00
8252472fae
feat(xep): Adjust to omemo_dart changes
2023-06-17 23:37:08 +02:00
3cb5a568ce
feat(xep,core): Migrate to moxlib's Result type
2023-06-17 21:45:00 +02:00
c2f62e2967
feat(xep): Implement an OMEMO example client
2023-06-17 21:28:54 +02:00
Ikjot Singh Dhody
66195f66fa
Merge branch 'master' into xep_0045
...
Signed-off-by: Ikjot Singh Dhody <ikjotsd@gmail.com>
2023-06-14 10:48:28 +05:30
Ikjot Singh Dhody
70fdfaf16d
feat(xep): Fix imports for xep_0045 files.
...
Signed-off-by: Ikjot Singh Dhody <ikjotsd@gmail.com>
2023-06-14 10:47:51 +05:30
Ikjot Singh Dhody
cd73f89e63
feat(xep): Remove duplicate manager string
...
Signed-off-by: Ikjot Singh Dhody <ikjotsd@gmail.com>
2023-06-14 10:47:51 +05:30
Ikjot Singh Dhody
05c41d3185
feat(xep): Refactor sendMessage to allow groupchat
...
Signed-off-by: Ikjot Singh Dhody <ikjotsd@gmail.com>
2023-06-14 10:47:50 +05:30
Ikjot Singh Dhody
64a8de6caa
feat(xep): Set base for XEP 0045 implementation
...
Signed-off-by: Ikjot Singh Dhody <ikjotsd@gmail.com>
2023-06-14 10:47:07 +05:30
Ikjot Singh Dhody
68809469f6
feat(xep): Add joinRoom, leaveRoom routines.
...
Signed-off-by: Ikjot Singh Dhody <ikjotsd@gmail.com>
2023-06-14 10:46:48 +05:30
Ikjot Singh Dhody
762cf1c77a
feat(xep): Set base for XEP 0045 implementation
...
Signed-off-by: Ikjot Singh Dhody <ikjotsd@gmail.com>
2023-06-14 10:46:48 +05:30
29a5417b31
Merge pull request 'Add support for XEP-0421.' ( #45 ) from ikjot-2605/moxxmpp:feat_xep_0421 into master
...
Reviewed-on: https://codeberg.org/moxxy/moxxmpp/pulls/45
2023-06-12 10:58:32 +00:00
Ikjot Singh Dhody
255d0f88e0
feat(xep): Use cascading operation to return state
...
Signed-off-by: Ikjot Singh Dhody <ikjotsd@gmail.com>
2023-06-12 15:00:37 +05:30
fa2ce7c2d1
feat(xep): FASTSaslNegotiator now only takes a string as its token
2023-06-11 22:22:45 +02:00
Ikjot Singh Dhody
fa11a3a384
feat(xep): Checked for the occupant-id directly.
...
Signed-off-by: Ikjot Singh Dhody <ikjotsd@gmail.com>
2023-06-11 23:29:17 +05:30
Ikjot Singh Dhody
ac5bb9e461
feat(xep): Implement XEP 0421 in Moxxmpp.
...
Signed-off-by: Ikjot Singh Dhody <ikjotsd@gmail.com>
2023-06-11 22:09:29 +05:30
aa71d3ed5d
feat(xep): Allow changing the SASL2 user agent
2023-06-11 16:30:49 +02:00
f2d8c6a009
fix(xep): Fix parsing user avatar data with newlines
2023-06-10 21:06:30 +02:00
88545e3308
fix(xep): Fix the OOB fallback for SFS
2023-06-09 00:07:18 +02:00
925a46c0da
feat(xep): Move to JID
2023-06-09 00:07:05 +02:00
8266765ff8
feat(core): Add encryption info to MessageEvent
2023-06-07 23:42:05 +02:00
e234c812ff
feat(core): Add a shorthand for MessageEvent.extensions.get
2023-06-07 21:11:11 +02:00
4ff2992a03
fix(all): Last minute fixes
2023-06-07 21:04:05 +02:00
09fd5845aa
feat(core): Re-fix the subscription functions
2023-06-07 18:54:05 +02:00
963f3f2cd9
feat(core): Check if we can do subscription pre-approval
2023-06-07 18:41:08 +02:00
da1d28a6d6
feat(core): Remove the PresenceReceivedEvent
2023-06-07 15:12:34 +02:00
cbd90b1163
feat(core): Add a list constructor to TypedMap
2023-06-07 14:13:46 +02:00
f0538b0447
feat(xep): Write a test for XEP-0334
2023-06-06 21:46:33 +02:00
968604b0ba
fix(tests): Fix SFS parsing test
2023-06-06 21:31:14 +02:00
60279a84e0
feat(all): Restrict extensions to StanzaHandlerExtension
2023-06-06 21:19:42 +02:00
cf3287ccf4
feat(core): Remove freezed artifact
2023-06-06 20:26:35 +02:00
1ab0ed856f
feat(all): Bump version to 0.4.0
2023-06-06 20:22:13 +02:00
10a5046431
feat(core): Rework [MessageEvent]
2023-06-06 16:19:16 +02:00
4d76b9f57a
feat(core): Remove [MessageDetails]
2023-06-06 15:57:55 +02:00
0ec3777f44
feat(xep): Managers register the sending callback
2023-06-06 15:14:19 +02:00
6f5de9c4dc
feat(xep): Implement the message sending callbacks
2023-06-06 14:12:49 +02:00
79d7e3ba64
feat(all): Move all managers to the new data system
2023-06-04 21:53:47 +02:00
8270185027
feat(core): Implement a typed map
2023-06-03 00:41:23 +02:00
9e0f38154e
feat(all): Various changes
...
- Fix unavailable presence being sent *after* connecting
- Migrate more APIs to the JID class
- Advertise +notify for user avatar metadata
2023-06-02 22:00:44 +02:00
1475cb542f
fix(xep): Just receiving <stanza-id/>s does not require disco
...
It is only required when we try to use them.
2023-05-25 12:42:42 +02:00
b949ec6ff5
fix(docs): Fix typo
2023-05-24 23:44:48 +02:00
83ebe58c47
feat(tests): Test emptying stanza queue on connect
2023-05-24 22:03:17 +02:00
4db0ef6b34
feat(core): Expose StanzaDetails
2023-05-24 20:41:02 +02:00
b95e75329d
feat(all): Remove StanzaAddFrom
2023-05-24 20:27:01 +02:00
3163101f82
feat(all): Migrate to the new StanzaDetails API
2023-05-24 14:28:42 +02:00
bd4e1d28ea
feat(core): Implement the send queue
2023-05-24 13:34:36 +02:00
b1da6e5a53
chore(xep): Move DiscoManager from String to JID
2023-05-23 17:28:20 +02:00
c6552968d5
feat(core): Remove resumed from connection state change events
2023-05-23 15:56:38 +02:00
1d87c0ce95
feat(xep): Separate XEP-0030 and XEP-0115 support
...
Also, we now validate whatever we get in terms of disco#info
and capability hashes before caching.
2023-05-23 15:52:48 +02:00
da591a552d
fix(xep): Fix discovery of XEP-0191 and XEP-0280
2023-05-16 19:06:50 +02:00
47b679d168
fix(xep): Do not set C2S counter to 0 after connecting
2023-05-16 13:45:52 +02:00
320f4a8d4c
fix(xep): Fix issues with enhanced enums
2023-05-16 00:59:50 +02:00
1fdefacd52
feat(xep): Improve API using enhanced enums
2023-05-15 20:40:39 +02:00
09b8613c80
fix(style): Style fixes
2023-05-07 00:15:37 +02:00
f3d906e69b
feat(core): Re-add xmlns for StanzaHandler
2023-05-07 00:13:25 +02:00
483cb0d7f1
fix(core): Fix stream parsing breaking after some time
2023-05-07 00:09:35 +02:00
f73daf4d1c
fix(core): Fix getting stuck on invalid stream ends
...
Whenever the stream ends in a weird state, for example with
`<some-tag`, initiating a new stream will confuse the XML parser
and lead errors causing the connection to get stuck.
To fix this, we had to work around xml's extension methods and implement
the extensions in the new "stream parser" where we can reset the parser
(and by reset I mean replace) and thus continue with a fresh parsing state
whenever we reconnect (or connect).
2023-05-06 20:58:34 +02:00
a8693da262
chore(xep): Formatting
2023-04-09 13:17:21 +02:00
0fb66f6aca
fix(xep,core): Fix some reconnection issues
...
- Use handleError instead of directly invoking onFailure
- Stop the ack timer only when we receive ack responses
- NoConnectionPossibleErrors are not irrecoverable
2023-04-09 13:14:53 +02:00
4d312b2100
chore(docs): Update changelog
2023-04-07 15:28:43 +02:00
c1ad646905
fix(core,xep): Fix multiple issues
...
- Fix a deadlock in the RandomBackoffReconnectionPolicy on failure
- Fix enablement of stream management happening too early
2023-04-07 15:26:49 +02:00
c88ab940c4
release: Version 0.3.1
2023-04-05 13:20:16 +02:00
916be1c927
fix(core): Fix components' stanza matching
2023-04-05 13:17:18 +02:00
7f3538875b
feat(core): Make all managers optional
2023-04-04 15:59:07 +02:00
f6efa20ff4
chore(meta): Bump versions
2023-04-04 15:55:52 +02:00
8443411f07
fix(docs): XEP-0144 -> XEP-0114
2023-04-04 15:53:57 +02:00
dc24b3c48a
chore(core): Remove useDirectTLS
2023-04-04 15:52:56 +02:00
f6abf3d5b5
feat(xep): Implement XEP-0114
2023-04-04 15:48:26 +02:00
63c84d9479
feat(core): Allow tracking the stream id
2023-04-03 23:18:10 +02:00
3e43ac22d7
feat(core): Remove getter and setter for connectionSettings
2023-04-03 17:56:31 +02:00
47d821c02e
docs(core): Add comments to NegotiationsHandler
2023-04-03 16:17:09 +02:00
355d580a9a
fix(tests): Fix negotiator tests
2023-04-03 16:15:46 +02:00
03328bdf7a
feat(core): Allow implementing different negotiation strategies
...
Fixes #27 .
2023-04-03 16:05:20 +02:00
275d6e0346
feat(core): Attempt to improve the ReconnectionPolicy
2023-04-03 13:40:13 +02:00
0d9afd546c
feat(core): Remove ignoreLock
2023-04-03 12:47:38 +02:00
3da334b5cf
feat(core): Remove the connection lock
2023-04-03 12:46:15 +02:00
ac8433f51f
chore(core): Refactor RFC6120 implementations
2023-04-02 23:33:53 +02:00
808371b271
chore(tests): Fix tests
2023-04-02 23:23:50 +02:00
7fdd83ea69
chore(xep): Clean the SASL2 implementation
2023-04-02 23:06:02 +02:00
d977a74446
feat(tests): Add an integration test for SASL2
2023-04-02 17:20:14 +02:00
29f0419154
feat(meta): Remove log redaction
2023-04-02 14:38:32 +02:00
b354ca8d0a
feat(xep): Improve the ergonomics of Bind2 negotiators
2023-04-02 13:39:43 +02:00
ec6b5ab753
feat(xep): Allow inline enablement of carbons
2023-04-02 12:44:09 +02:00
ce1815d1f3
fix(tests): Fix namespace of <bound />
2023-04-02 12:43:28 +02:00