Commit graph

2969 commits

Author SHA1 Message Date
mathieui
7d4172808f stanza: add typing 2021-07-03 11:17:15 +02:00
mathieui
95b034797f jid: reorder properties for mypy
don’t ask
2021-07-03 11:17:15 +02:00
mathieui
f1b429199f cert: add some typing 2021-07-03 11:17:15 +02:00
mathieui
db48c8f4da xmlstream: add more types 2021-07-03 11:17:15 +02:00
mathieui
c07476e7de setup: indicate that slixmpp contains type hints 2021-07-03 11:17:15 +02:00
mathieui
62e66e7d03 stanzabase: types 2021-07-03 11:17:15 +02:00
mathieui
79f71ec0c1 starttls: do not send back the feature we receive
I don’t see what a server would do with <required/>
2021-07-03 11:17:15 +02:00
mathieui
451bee0892 starttls: make the starttls element inherit from stanzabase 2021-07-03 11:17:15 +02:00
mathieui
00d38c1b29 typing: add to tostring 2021-07-03 11:17:15 +02:00
mathieui
fed55d3dda typing: matchers and senders
Leftover error that I cannot fix:

* https://github.com/python/mypy/issues/708

Leftover error that I am unsure of what to do:

* xml handlers are not properly typed

(it seems like nothing in slix is using it, considering a removal
 instead of adding an Union everywhere)
2021-07-03 11:17:15 +02:00
mathieui
4931e7e604 refactor: type the resolver
almost perfect, except for python < 3.9 making it so we can’t have nice
things.
2021-06-28 21:01:21 +02:00
mathieui
9f01d368c0 refactor: remove the now obsolete future_wrapper and asyncio-related module 2021-06-28 21:01:18 +02:00
mathieui
ef06429941 slixmpp.util: type things
Fix a bug in the SASL implementation as well. (some special chars would
make things crash instead of being escaped)
2021-06-28 21:00:30 +02:00
Link Mauve
b1411d8ed7 Merge branch 'request-voice' into 'master'
XEP-0045: Add a helper method to request voice

See merge request poezio/slixmpp!165
2021-05-21 19:05:26 +02:00
Emmanuel Gil Peyrot
889cfaa95b XEP-0045: Add a helper method to request voice
This can be used in a moderated room when we are only a visitor.
2021-05-21 19:00:59 +02:00
mathieui
b7f0160c0d Merge branch 'disconnected-stanzas-no-resend' into 'master'
xmlstream: do not re-send queued stanzas on each connect

See merge request poezio/slixmpp!163
2021-05-02 19:02:38 +02:00
mathieui
528553be57 xmlstream: do not re-send queued stanzas on each connect
each sent stanza should be purged, obviously…
2021-05-02 18:55:14 +02:00
mathieui
6f4ac7e7ce Merge branch 'fix-slow-tasks' into 'master'
xmlstream: Fix slow tasks

See merge request poezio/slixmpp!162
2021-04-30 19:43:05 +02:00
mathieui
aaab58d229 itests: add a simple slow filter test 2021-04-30 19:33:23 +02:00
mathieui
0b5f6cb0a8 xmlstream: fix slow tasks scheduling
- wrong attribute used
- some mistakes in the slow tasks function
2021-04-30 19:27:30 +02:00
Link Mauve
027545eb71 Merge branch 'fix-docs' into 'master'
docs: Use the correct number for user_nick

See merge request poezio/slixmpp!161
2021-04-24 20:39:29 +02:00
Emmanuel Gil Peyrot
290d84cd0f docs: Use the correct number for user_nick
Thanks Felix for noticing!
2021-04-24 20:33:04 +02:00
Link Mauve
f058e62680 Merge branch 'fix-0353' into 'master'
XEP-0353: Use the correct callback for <proceed/>

See merge request poezio/slixmpp!160
2021-04-24 20:25:34 +02:00
Emmanuel Gil Peyrot
104917163d XEP-0353: Use the correct callback for <proceed/>
Thanks elmar for noticing!
2021-04-24 20:20:02 +02:00
mathieui
d184442337 Merge branch 'fix-waiting-queue-xmlstream' into 'master'
xmlstream: fix use of the waiting queue

See merge request poezio/slixmpp!159
2021-04-22 21:08:08 +02:00
mathieui
a4789acbfb xmlstream: fix use of the waiting queue 2021-04-22 21:07:30 +02:00
mathieui
3630c3d1cc Merge branch 'caps-broadcast-presence' into 'master'
Caps: do not broadcast presence on PEP plugin load/unload

See merge request poezio/slixmpp!157
2021-04-20 19:08:46 +02:00
mathieui
41fc6a2e6b itests: explicitly send caps in avatar example 2021-04-20 18:57:50 +02:00
mathieui
7f0febb929 Merge branch 'use-runpy-for-version-data' into 'master'
fix: use runpy to get versiion-data

See merge request poezio/slixmpp!158
2021-04-20 09:27:10 +02:00
mathieui
44392fa2d9 fix: use runpy to get versiion-data
fix compatibility with debian stable (thanks jonas’)
2021-04-20 09:18:57 +02:00
mathieui
7bb94afdc8 XEP-0163: do not broadcast caps when adding/removing interest 2021-04-19 23:19:40 +02:00
mathieui
8828a5b99d XEP-0115: add a broadcast parameter to update_caps
and do not send a presence after updating if it is false
2021-04-19 23:17:10 +02:00
mathieui
0d52344a31 Merge branch 'fix-component-handshake' into 'master'
Fix component handshake

Closes #3464

See merge request poezio/slixmpp!156
2021-04-19 19:53:33 +02:00
mathieui
768089d457 tests: fix bogus test case
stanza.match worked accidentally, but the two elements used in that test
actually conflict with each other (not overriding the plugin_attrib,
which makes it then default to 'plugin', leading to shenanigans).
2021-04-19 19:42:52 +02:00
mathieui
eee185ff90 stanza: rework the .append() and __eq__ methods
This was very much broken on plugin iterables and other reasons.
2021-04-18 23:01:36 +02:00
mathieui
99c6fc923a itests: do not compare strings, compare xml 2021-04-18 23:01:01 +02:00
mathieui
d4e1b68534 Allow handshake in stream.send() when not connected yet
fix #3464
2021-04-18 21:16:03 +02:00
mathieui
3bb01de120 stanza: add a Handshake class and use it in componentxmpp 2021-04-18 21:15:22 +02:00
mathieui
7057773d18 Merge branch 'tentative-fix-for-reconnect-race' into 'master'
xmlstream: do not allow stanzas outside a session

See merge request poezio/slixmpp!154
2021-04-12 19:49:10 +02:00
mathieui
894131d772 Merge branch 'inbound-id-message-presence' into 'master'
Fix #3441: Do not assign ID to inbound stanzas

Closes #3441

See merge request poezio/slixmpp!155
2021-04-09 20:55:41 +02:00
mathieui
fcf666e3cb Fix #3441: Do not assign ID to inbound stanzas 2021-04-09 20:40:30 +02:00
mathieui
3e5943f458 xmlstream: do not allow stanzas outside a session
except for the bind, obviously
2021-04-08 18:47:51 +02:00
mathieui
7ddcc3428f Merge branch 'xep-0300-fixup' into 'master'
XEP-0300: small fixes

See merge request poezio/slixmpp!151
2021-03-11 20:54:31 +01:00
mathieui
d77eb3a7e8 Merge branch 'fix-0030-get-info-ifrom' into 'master'
XEP-0030: Fix usage of ifrom in get_info

See merge request poezio/slixmpp!152
2021-03-10 22:09:54 +01:00
mathieui
7f90fb594a XEP-0030: Fix usage of ifrom in get_info 2021-03-10 22:07:00 +01:00
mathieui
1cf6393b61 XEP-0300: small fixes
- fix a typo in the default option (crash when hashing a file without
  providing a function)
- Fix the plugin_end method (classical del_feature footgun)
2021-03-10 21:26:08 +01:00
mathieui
7c86c43fc7 Merge branch 'mam-update' into 'master'
MAM Update

See merge request poezio/slixmpp!149
2021-03-09 21:20:14 +01:00
mathieui
8a1f9bec56 Merge branch 'xep-0115-fix-error' into 'master'
XEP-0115: remove wrong coroutine=True argument

See merge request poezio/slixmpp!150
2021-03-09 20:05:09 +01:00
mathieui
ad2673fd2c XEP-0115: remove wrong coroutine=True argument 2021-03-09 20:02:16 +01:00
mathieui
0115feaa31 tests: Add a MAM metadata stanza test 2021-03-09 19:52:53 +01:00