summaryrefslogtreecommitdiff
path: root/poezio/core/handlers.py
AgeCommit message (Collapse)Author
2020-03-24poezio/core/handlers: More explicit logging for whitespace keepaliveskeepalive-logMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
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>
2019-10-27Fix syntax warnings (thanks python 3.8)mathieui
2019-10-10MUC-PMs: correctly loop through bookmarksMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-10core/handlers: Add typing annotationsMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-10MUC-PM: centralize and improve PM detection in all code pathsGeorg Lukas
2019-08-25Fix private tabsmathieui
- receipts - receiving messages - showing our sent messages
2019-07-29Merge remote-tracking branch 'origin/mr/28'Maxime “pep” Buquet
Address multiple reconnect issues. Thanks Ge0rG!
2019-04-27Replace tab.name with tab.jidMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-03-26Inform the user and re-instate 0199 pinger on a successful 0198 resumeGeorg Lukas
2019-03-26Refactor session_end actions out of on_disconnectGeorg Lukas
2019-03-26Display disconnect reason, depends on slixmpp!12Georg Lukas
2019-03-23Merge branch 'muc_subject' into 'master'Maxime Buquet
Corrected the value of timestamp for MUC subject. Fixes #3451 Closes #3451 See merge request poezio/poezio!25
2019-03-23Corrected the value of timestamp for MUC subject. Fixes #3451Madhur Garg
Corrected the value of timestamp for MUC subject. Fixes #3451 Corrects the value of timestamp for messages with delay tag. Fixes #3451
2019-03-23Treat messages containing subject as regular message if they contain body or ↵Maxime “pep” Buquet
thread. Fixes #3452 in combination with slixmpp@2dda6b80. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-03-20's/an user/a user/g'Maxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-03-19Change 'his/her' to 'their'Kim Alvefur
It's shorter and reads better. Also removes 'its', which might be intented to refer to bots or the like.
2019-02-24Do not process messages with subject AND thread or body as topic changes (#3452)mathieui
2019-01-22Fix syntax errors in the previous commit.Emmanuel Gil Peyrot
2019-01-22Store get_theme() in a variable in each function, to avoid redundant calls.Emmanuel Gil Peyrot
2018-12-16Roster: display presence.show when contact goes offline, if available.Georg Lukas
2018-12-16Use identites from server for muc serviceMaxime “pep” Buquet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2018-09-29Print the error given by the server when /bookmark fails.Emmanuel Gil Peyrot
2018-08-01Fix some leftover issues with tab handlingmathieui
2018-07-21Update poezio for the new tabs modulemathieui
2018-07-21Add exceptions for some pylint errorsmathieui
until we find out where type inference has gone very wrong.
2018-07-21yapf -ripmathieui
2018-07-05core.handlers: Correctly import get_image_cache() from poezio.config.Emmanuel Gil Peyrot
2018-07-04Factorise retrieving tmp_image_dir.Emmanuel Gil Peyrot
2018-07-04xhtml: Simplify tmp_dir/extract_images into a single Option<str> parameter.Emmanuel Gil Peyrot
2018-07-02Switch from @asyncio.coroutine to async def everywhere.Emmanuel Gil Peyrot
2018-06-28Replace the '%s' % var pattern with str(var).Emmanuel Gil Peyrot
2018-05-31MUC-PM: bare-JID messages can't be PMsGeorg Lukas
2018-04-01Sent Carbon: handle MUC-PMs properly. Fix #3294Georg Lukas
2018-04-01MUC-PM handler: support 'sent' messages (for Carbons)Georg Lukas
2018-03-31Remove unused import.Emmanuel Gil Peyrot
2018-03-31Use slixmpp’s new cache module for avatars too.Emmanuel Gil Peyrot
2018-03-14Factorise the /version callback and make it handle errorsEmmanuel Gil Peyrot
Fixes #3376.
2018-02-11Fix the nick conflict codemathieui
also yapf -rip
2018-01-25Check that avatar sha1 is consistent with the hash.Emmanuel Gil Peyrot
2018-01-25Fix caching newer avatars.Emmanuel Gil Peyrot
2018-01-13yapf -irmathieui
2018-01-10Fix typos, thanks `codespell`!Emmanuel Gil Peyrot
2017-11-23Remove all remote_wants_chatstates logic, keep the stubs.Emmanuel Gil Peyrot
2017-11-12yapf -irmathieui