Commit graph

4190 commits

Author SHA1 Message Date
Emmanuel Gil Peyrot
79bbbdb3e6 Replace asyncio.ensure_future() with asyncio.create_task()
The latter function got introduced in Python 3.7, which is conveniently
our MSPV, so let’s use that.
2021-12-11 19:16:33 +01:00
Georg Lukas
2c59fa067a Logger: consolidate a bit of file path creation 2021-12-11 19:06:09 +01:00
Georg Lukas
e1a75a5ced Logger: jidstr is not a valid JID with MUC-PMs
The logger often operates on filenames for log files and assumes that
jid == filename, but MUC-PM filenames are `muc@domain\nick` (jidstr)
instead of `muc@domain/nick` (jid) and the former is not a valid JID.

This patch fixes the places where jid and jidstr are mixed up.
2021-12-11 19:06:09 +01:00
mathieui
1d681fb04c ci: remove pylint job
it never works
2021-12-11 17:59:10 +01:00
Emmanuel Gil Peyrot
c96d94f498 Avoid calling get_theme() more than once
And avoid calling it altogether when no time is passed.
2021-11-16 17:36:55 +01:00
Emmanuel Gil Peyrot
f6a53e66c7 Make message format more configurable around nicks
Normal messages were previously hardcoded to 'nick> ', and /me messages
to '* nick ', this commit adds three new theme variables to make these
configurable.
2021-11-15 19:44:16 +01:00
Emmanuel Gil Peyrot
69f28e97f3 Documentation: Fix theming docs, the module is namespaced in poezio.
Thanks Hund for finding this issue!
2021-11-15 12:02:12 +01:00
Emmanuel Gil Peyrot
8947caae2e Add xmpp: URI support to the /join command 2021-11-15 11:31:54 +01:00
7f1e9b080c
plugin_e2ee: handle empty args in /foo_state commands
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2021-08-07 01:08:10 +02:00
00a91774fc
plugin_e2ee: correctly pass realjid to decrypt call in MUC
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2021-07-17 02:52:43 +02:00
90242b8243
doc: Increase emphasis on OMEMO location
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2021-07-14 10:55:47 +02:00
mathieui
9e0eccd1dd fix: remove extra imports in text buffer 2021-07-03 10:34:39 +02:00
mathieui
76963ed3ab fix: do not use raw xml access for slix elements 2021-07-03 10:33:25 +02:00
mathieui
e3b07d95f2 tests: fix expected get_by_tabname input type 2021-07-02 21:10:20 +02:00
mathieui
66c615fd94 ci: use mainline mypy
no need to run the custom-built version anymore
2021-07-02 21:00:17 +02:00
mathieui
2b3cde233f fix: improve typing
preliminary to more typing added to slixmpp, fix things in advance
2021-07-02 20:59:25 +02:00
mathieui
26505c32df fix: do not silently traceback on mucs without mam
in mucs, there is no "initial message"
2021-06-26 20:59:55 +02:00
mathieui
3698b20a47 fix: hack around the time limit for topic messages
we cannot have nice things
2021-06-26 20:59:55 +02:00
mathieui
ae3b747e94 fix: load less messages on startup/gap fill
gap filler was called on MUC joins, therefore loading 999 messages
instead of the 2 times the screen height
2021-06-26 20:36:08 +02:00
mathieui
e5b4f7ab0d fix: do not use re.match() on existing Pattern objects
this is duplicating effort and going through re._compile once more
approximately slows down the log parsing by 15%
2021-06-26 14:53:17 +02:00
mathieui
1456566f10 fix: race condition in history load 2021-06-26 13:37:40 +02:00
mathieui
e159fad565 fix: fallback to server jid in conversationtab
if there is no userpart and no known nick, it is a server JID
2021-06-26 12:07:42 +02:00
mathieui
c296768987 fix: do not print a message on a muc not found
as we will nott actually create the tab.
2021-06-25 23:09:52 +02:00
mathieui
3315498134 tests: run tests on 3.7 through 3.10
instead of 3.7 and "latest"
2021-06-25 22:07:41 +02:00
mathieui
975bad7621 fix: do not include the nick in affiliation changes
This trips up prosody a bit, and is undefined outside of the member
affiliation.
2021-06-25 21:49:32 +02:00
mathieui
2b76f72e4d Fix the message doubling situation
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-06-22 23:26:49 +02:00
Raghav Gururajan
3035f4ed4d Update install.rst 2021-06-22 08:08:12 +02:00
mathieui
77a618a8d5 Fix: do not scroll right by default in dataforms/bookmark text
Seeing "…@muc.example.com" instead of "toto@muc.…" is not really
helpful, especially in bookmarks.
2021-05-25 19:01:50 +02:00
Emmanuel Gil Peyrot
6c0be69524 muctab: Add a /request_voice for use in moderated rooms
It signals moderators that you want to speak.
2021-05-21 19:06:23 +02:00
mathieui
2b032b7d02 fix: unsupported typ= parameter in OTR plugin
still broken because of pycrypto though
2021-05-16 11:31:15 +02:00
mathieui
abb587f237 fix: unsupported typ= parameter in embed plugin 2021-05-16 11:30:56 +02:00
mathieui
e03f802e41 fix: do not traceback on invalid jids in config.get_by_servname 2021-04-20 18:55:56 +02:00
mathieui
e3f9af4a35 fix: do not use get_by_tabname for muc colors
this is very wrong
2021-04-20 18:55:01 +02:00
mathieui
af311a6287 fix: do not log the whole stacktrace when a tab has no mam support 2021-04-19 23:26:42 +02:00
mathieui
e40b2df69e fix: improve readme aesthetics and contents
badges, new text, more links
2021-04-17 18:56:19 +02:00
mathieui
116c167e9a fix: allow certificate confirm dialog resize
fixes #3371
2021-04-17 13:53:22 +02:00
mathieui
11de2d98b3 fix: take newlines into account when completing stuff
fixes #3385
2021-04-16 21:52:28 +02:00
mathieui
e9f6cae5b5 fix: take newlines into account in input manipulation
fix #3411
2021-04-16 21:52:28 +02:00
mathieui
35519e6478 fix: regression on /set 2021-04-16 21:48:00 +02:00
mathieui
ae9d8ae291 fix: handle /me message properly when logging
tangentially fix #3432 (but it was not relevant for a while)
2021-04-16 20:35:24 +02:00
mathieui
244dbf3a22 fix: pasting text in data forms and bookmarkstab
Fix #3519
2021-04-16 20:20:15 +02:00
mathieui
f915e9a3ab fix: /set: do not priorize section printing if we detect an option 2021-04-16 19:54:14 +02:00
mathieui
c788c9afb8 fix: when detecting /set option = value, do the right thing
Previously: this creates a section with the option name, with an option
named "=" and the value specified. Then you are stuck because
"/set option value" will not work due to the command detecting the
section name and only printing the value of [option] value=.

Fixes #3517, probably
2021-04-16 19:53:59 +02:00
mathieui
cbc4041746 fix: composing indicators not showing (fix #3527)
the fact this even worked in vertical mode was only due to a theming
edge case.
2021-04-16 19:41:03 +02:00
mathieui
f1f1ccd506 internal: remove the xep-0319 implementation
It is not privacy-friendly and not performance-friendly to have more
code called on each input when in "available" status
2021-04-16 19:40:11 +02:00
mathieui
e5398e68e9 fix: correction time in one to one tabs (fix #3532) 2021-04-16 19:25:57 +02:00
mathieui
3591221e04 fix: split inactive chatstates from message in one to one tabs 2021-04-16 18:51:01 +02:00
mathieui
f9e0994311 fix: when sendingg a muc message, send the inactive chatstate apart
Fix #3509
2021-04-16 18:46:48 +02:00
mathieui
e57bf0d433 fix: available presences in tabs 2021-04-16 18:46:16 +02:00
mathieui
b8c5d4c00a fix: confirmtab not spawning 2021-04-15 22:07:21 +02:00