summaryrefslogtreecommitdiff
path: root/poezio/core/handlers.py
AgeCommit message (Collapse)Author
2022-08-21mypy: Type some more thingsEmmanuel Gil Peyrot
This lets us pass under mypy 0.971, and is yet another step towards mypyc compatibility perhaps.
2022-04-03fix: add missing awaits in carbons handlingmathieui
2022-02-25clean: remove unused importsmathieui
2022-02-25internal: make the other message handlers asyncmathieui
2022-02-25internal: move and split muc message handlingmathieui
2022-02-10internal: use async events where possiblemathieui
2022-02-06internal: make most core.handlers asyncmathieui
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.
2021-12-11Replace asyncio.ensure_future() with asyncio.create_task()Emmanuel Gil Peyrot
The latter function got introduced in Python 3.7, which is conveniently our MSPV, so let’s use that.
2021-06-22Fix the message doubling situationmathieui
Add an "initial" parameter for onetoonetabs, and delay the reception of the message until the sync is done (and possibly ignore the message if it is fetched by the sync). Fixes #3542
2021-04-17fix: allow certificate confirm dialog resizemathieui
fixes #3371
2021-04-16fix: correction time in one to one tabs (fix #3532)mathieui
2021-04-14fix: corrections in 1to1 tabsmathieui
2021-04-12fix: remove all remaining safejids (fix #3457)mathieui
2021-04-08fix: beep_on was broken with config changesmathieui
2021-04-02logging: Remove the "typ" passing when adding or logging messagesmathieui
2021-04-02refactor: rewrite config.get() to getbool, getstr, getint…mathieui
2021-02-09Remove activity/mood/gaming/tune from poezio coremathieui
rationale: probably 0.1% of poezio users have ever used the commands, and a very small number of users are using the PEP events like that. It is better to unclutter the poezio source and add it as a plugin, with less tight coupling.
2021-02-03Use async properly on session startmathieui
2021-01-28Move get_error_message to commonmathieui
2021-01-24Also receive self-message events in pluginsmathieui
fixes omemo messages from another of our connected clients
2020-12-17plugins: do not fire private_msg event on own messagesmathieui
2020-12-17plugins: do not fire conversation_msg event on own messagesmathieui
2020-12-12Use the new xep_0045 elements from slixmpp 1.6.0Emmanuel Gil Peyrot
2020-09-15Disco#info barejid instead of domain on sent carbonsGeorg Lukas
This is the counter-part to 5e404377d4eb1b80b81be91d75e12300c40b354c for "sent" carbons. Signed-off-by: Georg Lukas <georg@op-co.de>
2020-07-16core/handlers: revert change in normal_message handlerMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-07-08MucTab: highlight on delayed and not historyMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-05-29Fix a traceback after a received MUC messagemathieui
"highlight referenced before assignment"
2020-05-24Checks whether the gaming payload is empty or notEmmanuel Gil Peyrot
Fixes a long-standing bug where a gaming stop event would be interpreted as starting a game. Also does the same for mood, activity and tune.
2020-05-17Fix highlight navigationmathieui
2020-05-12Fix a bug when the value of show_composing_chat_state is not lowercasemathieui
2020-05-12poezio.core.handlers: Treat MUC Barejid message as infoMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-05-09Ensure muc history messages are considered historyMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-05-09Fix highlights by introducing a delayed property on ui.types.MessageMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-05-09Pass a message to add_message instead of messed up kwargs everywheremathieui
Changes LOTS of things
2020-05-09Fix attention handlermathieui
2020-04-22[ci skip] Add TODOs re #3314Maxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-04-06xep_0196: Use correct tag local name (thanks ivucica)Maxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-04-05/correct: send new-style LMCMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-04-04Merge branch 'sync-fixes' into 'master'Maxime Buquet
only auto-reconnect if not already reconnecting, needs slixmpp!37 See merge request poezio/poezio!78
2020-04-04Actually skip whitespace ping logging (thanks Ge0rG)Maxime “pep” Buquet
Fixes what 9da6f5328c714f6bdcbc89cb038e10116ab0bed6 intended to do. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-04-04only auto-reconnect if not already reconnecting, needs slixmpp!37Georg Lukas
2020-04-03Show textual presence error if availableKim Alvefur
If there's a human-readable explanation of the error, it should be there.
2020-03-31Skip whitespace ping loggingMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-03-29display a delayed reconnect info, needs slixmpp!35Georg Lukas
2020-01-12Disco#info barejid instead of domain only on carbonsMaxime “pep” Buquet
There is no apparent reason why a disco#info should be done on the domain Jid rather than the bare Jid. MUCs advertize their MUC-y-ness on the bare Jid. This will also fix cases like chat@dino.im which is a MUC component itself (whereas dino.im is a user host), and biboumi components that serves a mic of MUCs and (IRC) users. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-01-12is_known_muc_pm: search into more than MucTabMaxime “pep” Buquet
Use new `by_jid` API to search for any tab containing the barejid, and then look at the type of Tab. Move the Tab search at the top of the checks so that we stop searching if we already have done all this work for previous stanzas. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-01-12Some more typing for is_known_muc_pmMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-01-12Prevent Traceback when receiving MUC-PM carbons under some conditionsMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-12-27Expand the status command, make decryption work, put a hack into the core so ↵lumi
I can handle messages without bodies.
2019-12-22WIP: Allow blocking commands in ConversationTabMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>