Commit graph

3852 commits

Author SHA1 Message Date
mathieui
29eef159d5 Fix some edge cases of MAM history fetch
- Wait until we receive our own MUC presence to fetch history
- Fix /reconnect weirdness
2020-05-23 16:10:13 +02:00
mathieui
d3655c4c35 Fix some remaining refresh issues 2020-05-23 16:10:13 +02:00
mathieui
36c85a5df4 Add an "end of archive" message type 2020-05-23 16:10:13 +02:00
mathieui
d174e1fa35 MAM: many changes
- Fix color & nicks in one to one chats
- Make poezio-facing functions "schedules" to avoid races on tab query
  state
- Rename functions
- Use a different behavior when filling a history gap and populating a
  new tab in a MUC
2020-05-23 16:10:13 +02:00
mathieui
54339ee7e0 Textbuffer: add "find last message" function 2020-05-23 16:10:13 +02:00
mathieui
fbec652efd Core: dedup some code 2020-05-23 16:10:13 +02:00
mathieui
b7423ee43b Remove "top" message logic 2020-05-23 16:10:13 +02:00
mathieui
e488b75737 Add tests for text_buffer 2020-05-23 16:10:13 +02:00
mathieui
7e29abf2e6 Add a concept of "history gap" 2020-05-23 16:10:13 +02:00
mathieui
ea438438f2 Add specific types for own leave and join 2020-05-23 16:10:13 +02:00
louiz’
4c1ab027ac Merge branch 'deploy-doc-python3-image' into 'master'
ci: Deploy the doc using the python:3 docker image

See merge request poezio/poezio!106
2020-05-22 23:46:09 +02:00
louiz’
fe1b54ef97 ci: Deploy the doc using the python:3 docker image 2020-05-22 23:36:50 +02:00
mathieui
f5b407e9b2 Merge branch 'muctab-presence-types' into 'master'
MucTab: add some typing to presence handlers

See merge request poezio/poezio!104
2020-05-22 18:46:17 +02:00
a876d4e2ee MucTab: add some typing to presence handlers
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-05-20 00:44:27 +02:00
mathieui
936350471c Merge branch 'ignore-muc-avatar' into 'master'
MucTab: Ignore presence from MUC barejid

See merge request poezio/poezio!103
2020-05-20 00:05:07 +02:00
bf70fb8a05
MucTab: Ignore presence from MUC barejid
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-05-20 00:00:45 +02:00
36a0281b67 Merge branch 'fix-highlights' into 'master'
Fix highlights

See merge request poezio/poezio!102
2020-05-17 21:34:50 +02:00
mathieui
551828607c Fix highlight display on corrections 2020-05-17 21:14:23 +02:00
mathieui
6057d0dc9b Fix a corner case with correction when moving between highlights
(there are still a few but this one would wipe all other highlights,
making it a bit painful)
2020-05-17 20:42:21 +02:00
mathieui
aec4c279f2 Fix highlight navigation 2020-05-17 20:37:54 +02:00
mathieui
01ebe78401 Remove extra logging 2020-05-17 19:48:42 +02:00
mathieui
5bfca8a704 Fix highlights color 2020-05-17 19:47:29 +02:00
20cb8f0bef Merge branch 'ci-doc' into 'master'
CI: limit the doc deploy job to master on poezio/poezio

See merge request poezio/poezio!101
2020-05-14 17:49:03 +02:00
563de4dfd6 CI: limit the doc deploy job to master on poezio/poezio
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-05-14 17:38:06 +02:00
a241edb08d Merge branch 'reorder-gaptab' into 'master'
plugins/reorder: fix GapTab serialization

See merge request poezio/poezio!100
2020-05-14 17:37:59 +02:00
7b2b21be30
plugins/reorder: fix GapTab serialization
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-05-14 17:20:03 +02:00
7b5c44b361 Merge branch 'reorder-plugin-handle-corner-case' into 'master'
Fix an issue where the reorder plugin would not create gaps

See merge request poezio/poezio!99
2020-05-13 00:03:12 +02:00
mathieui
52ad2c0235 Fix an issue where the reorder plugin would not create gaps 2020-05-12 23:57:59 +02:00
da235f286d Merge branch 'fix-composing-tab-state-case' into 'master'
Fix a bug when the value of show_composing_chat_state is not lowercase

See merge request poezio/poezio!98
2020-05-12 23:33:54 +02:00
mathieui
afc6da052e Fix a bug when the value of show_composing_chat_state is not lowercase 2020-05-12 23:28:09 +02:00
mathieui
ef38ff8f6a Merge branch 'feature/unique-prefix-tab-names' into 'master'
Unique prefix tab names

Closes #3525

See merge request poezio/poezio!94
2020-05-12 22:32:50 +02:00
Jonas Schäfer
1e7ce43789 Add keyboard action to go to room by unique prefix
This is especially useful in combination with the
newly introduced `unique_prefix_tab_names` config option. It has
no default binding.
2020-05-12 22:26:51 +02:00
Jonas Schäfer
a15e52dc39 Add option to show only the unique prefix of tab names
When the set of tabs used fluctuate, the memory of which number
belongs to which chat becomes difficult to work with. Non-numbers
can be used to navigate tabs with `/win`, however, it is difficult
to know which letters are required to select a certain tab.

This option introduces a display mode for tab names where only the
unique prefix of the tab name is shown, saving space and providing
with a minimal string which can be used with `/win`.
2020-05-12 22:26:51 +02:00
Jonas Schäfer
eab4615fe0 Add /wup command
The `/wup` command selects a tab by the prefix of its name only.

The `/win` will do a substring match based on the first tab
going from the current tab which matches the substring. This can
be confusing, especially since `/win` matches on different types
of tab "names" not only on the name which is shown in the info bar
by default.

The `/wup` command exclusively matches based on the prefix of the
tab.name string. This has the advantage that it is consistent,
deterministic and independent of the currently selected tab.
2020-05-12 22:26:51 +02:00
Jonas Schäfer
c1863addfd Add function to find a tab by unique prefix 2020-05-12 22:26:51 +02:00
Jonas Schäfer
d4d0c1a19f Add function to calculate unique prefix of two strings 2020-05-12 22:26:51 +02:00
1b974d2d9a Merge branch 'upload-exceptions' into 'master'
plugins/upload: handle more exceptions

See merge request poezio/poezio!97
2020-05-12 02:02:38 +02:00
8b385a0c99
plugins/upload: handle more exceptions
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-05-12 01:58:37 +02:00
ac3fb69574 Merge branch 'muc-barejid-info' into 'master'
poezio.core.handlers: Treat MUC Barejid message as info

See merge request poezio/poezio!96
2020-05-12 00:21:41 +02:00
17585c6b65
poezio.core.handlers: Treat MUC Barejid message as info
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-05-12 00:10:27 +02:00
406a10bf15 Merge branch 'move-deny-remove-global-scope' into 'master'
Move /deny and /remove global scope

See merge request poezio/poezio!93
2020-05-10 00:30:56 +02:00
mathieui
a1c8efdfb2 Move /deny and /remove to global scope as well 2020-05-10 00:11:23 +02:00
mathieui
e03fb0b3ce Fix completion and function names for /accept and /add 2020-05-10 00:11:23 +02:00
mathieui
eda88a59a6 Add back the deny_anonymous decorator to /add and /accept 2020-05-09 23:14:26 +02:00
mathieui
2eb362ffe8 Move the deny_anonymous decorator to the poezio.decorators module 2020-05-09 23:12:57 +02:00
mathieui
f68fa1da5e Merge branch 'split-message-rendering' into 'master'
split message rendering

See merge request poezio/poezio!48
2020-05-09 22:58:17 +02:00
ca85411af0 affiliations: Use InfoMessage in add_message call
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-05-09 19:46:17 +02:00
4eb395c215 Don't highlight on reflected messages
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-05-09 19:46:17 +02:00
446fa8ea82 Ensure muc history messages are considered history
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-05-09 19:46:17 +02:00
961f6c1755 Fix highlights by introducing a delayed property on ui.types.Message
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2020-05-09 19:46:17 +02:00