cb50120d87
plugins/contact: use f-strings
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-23 16:10:36 +01:00
e010abcd95
plugins/contact: Move error handling where the error actually happens
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-23 16:10:05 +01:00
mathieui
def167791d
fix: do not triplicate messages on /message tab openings
...
add a synchronization primitive to avoid /say until the logs are loaded
and synced (otherwise we do the /say THEN the message we just sent can
be loaded from the archive, while also being displayed)
2022-03-23 15:38:00 +01:00
mathieui
6174ca70d9
internal: make command_say async
2022-03-23 15:38:00 +01:00
d6de6dccfa
Update CHANGELOG
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-21 18:11:56 +01:00
19c8590790
plugin_e2ee: Allow /<name>_fingerprint in RosterInfoTab without argument
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-21 17:45:30 +01:00
3c7fb0b792
plugin_e2ee: rework fingerprint display slightly
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-21 17:45:30 +01:00
433d5e6f76
plugin_e2ee: new format_fingerprint method to be overriden by plugin
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-21 17:45:30 +01:00
b2de905464
plugin_e2ee: get_fingerprint is now async
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-21 17:45:30 +01:00
93c03c2b7e
Add py.typed
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-21 17:20:37 +01:00
afaee7e7ec
plugins/b64: specify supported_tab_types; Fix type in plugin_e2ee
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-17 00:13:44 +01:00
dc894b9849
plugin_e2ee: Ensure supported_tab_types is specified in plugin
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-17 00:11:07 +01:00
9168b577cd
plugins/b64: change encrypt signature, fix import order
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-16 23:33:16 +01:00
c9bc30d587
plugins/b64: adapt to E2EEPlugin.decrypt sign change
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-16 08:09:11 +01:00
a9e9c6d38f
Changelog: E2EEPlugin changes
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-16 08:09:11 +01:00
87cb79aa71
plugin_e2ee: _decrypt_wrapper doesn't need a return type
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-16 08:09:11 +01:00
191702a185
plugin_e2ee: Ensure all encrypted messages we handle are processed
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-16 08:09:11 +01:00
c202e8e2f3
plugin_e2ee: Use f-string
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-16 08:09:11 +01:00
b9abd60673
plugin_e2ee: Add TODO in _encrypt filter
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-16 08:09:11 +01:00
cfa1bfc5b2
plugin_e2ee: quit _encrypt filter as soon as we seen encrypted tags
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-16 08:09:11 +01:00
c4ce439483
plugin_e2ee: allow normal message to pass through again when not encrypting
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-16 08:09:11 +01:00
ccf9c3e4e1
plugin_e2ee: check all encrypted tags in _decrypt and _encrypt
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-16 08:09:11 +01:00
2fd3a9ef48
plugin_e2ee: drop message if tab is None and doesn't contain encrypted tag
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-16 08:09:11 +01:00
c75573ddf8
plugin_e2ee: let already encrypted messages through
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-16 08:09:11 +01:00
Emmanuel Gil Peyrot
4dde022de8
xhtml: Add a newline after a blockquote
...
Thanks Maranda.
2022-03-11 13:43:27 +01:00
southerntofu
5d14094780
Don't silently traceback when trying to message someone privately in a MUC
...
Using jidstr with slashes "escaped" as backslashes is clever, but
_check_and_create_log_dir still expects a parsable JID to check config.
2022-03-07 14:07:05 -05:00
0676cec53e
impromptu: types, fstrings, naming
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-01 22:38:03 +01:00
cdf38ace9f
impromptu: wait for subject instead of self-presence
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-01 22:38:03 +01:00
ee82c6717d
impromptu: Ensure a room is empty before joining
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-01 22:38:03 +01:00
1e6073e0ec
plugin_e2ee: ignore mypy failures with passthrough metaclass param
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-01 20:44:07 +01:00
5d5d6b7ed0
plugin_e2ee: encrypt: also search tabs for barejids if not found
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-01 20:44:07 +01:00
72ec3cd73b
plugin_e2ee: don't fail on tab.jid if tab is None
...
I doubt this is the proper fix, there are still paths that use tab below
that.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-01 20:44:07 +01:00
33555db0c1
plugin_e2ee: allow decrypt call to be async
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-03-01 20:44:07 +01:00
mathieui
8ca55b4442
fix: do not traceback on encrypted payloads without a tab open
2022-03-01 20:44:07 +01:00
mathieui
aaa6911a39
clean: remove unused imports
2022-02-25 22:35:30 +01:00
mathieui
fbd3d0bcfd
internal: remove unused get_text_window
2022-02-25 22:35:30 +01:00
mathieui
456c4c46a6
internal: make the other message handlers async
2022-02-25 22:35:30 +01:00
mathieui
101bab502f
internal: move and split muc message handling
2022-02-25 22:35:30 +01:00
a3666c9a05
bookmark: Add logging on InvalidJid
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-02-25 20:14:05 +01:00
7eb99bb436
bookmark nick: Treat empty string as no nick
...
And prevent the JID() call from failing with InvalidJid because of the
empty resource.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-02-25 20:11:56 +01:00
06dbefebb7
Ensure /bookmark{,_local} and /join use the proper tab object
...
Now that _add_bookmark is async.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-02-25 19:05:54 +01:00
mathieui
a1af1355a9
fix #3553 : muclisttab not joining
2022-02-15 23:38:37 +01:00
mathieui
1f95f25a87
fix default dataform field handling ( #3554 )
2022-02-11 21:46:15 +01:00
mathieui
c7711a8a61
internal: use async events where possible
2022-02-10 16:32:30 +01:00
mathieui
22093250ef
internal: add a trigger_async method for events
2022-02-10 16:32:30 +01:00
Emmanuel Gil Peyrot
d35c0564b3
Add a /sticker plugin
...
This plugin currently uploads the selected sticker every time, to the
HTTP File Upload service of the server (see XEP-0363), a future
optimisation would be to use XEP-0231 instead, for better caching on the
recipient side.
It relies on a helper tool to select the wanted sticker inside the pack,
a sample one is provided in tools/sticker-picker/, but it is not built
by default.
2022-02-10 01:45:37 +01:00
mathieui
9735b6d6dc
fix: remove fixes.has_identity which is now unused
2022-02-06 17:38:45 +01:00
mathieui
911cf335a1
internal: make most core.handlers async
...
add some typing annotations on inputs as well, most are not necessary
right now but the end goal is to make poezio internals much more
async-friendly than it currently is.
2022-02-06 17:37:13 +01:00
mathieui
8847f3e7de
muc: clear the users buffer even if we do not think we are connected
2022-01-30 15:14:04 +01:00
5a7e237972
ChangeLog: Add impromptu pronouceable names
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-01-30 00:21:00 +01:00