Commit graph

3700 commits

Author SHA1 Message Date
mathieui
0ba31f877c
Fix pylint errors
- wrong command path
- pylint bug regarding slots
2019-10-18 23:16:52 +02:00
mathieui
9c6f7246d7
CI Doc generation: install sphinx inside the venv 2019-10-18 21:46:30 +02:00
mathieui
494feac441
Specifically install aiohttp 3 in python 3.5 CI
I hope it can fix the issue without further tinkering.
2019-10-18 21:27:51 +02:00
mathieui
73a953b644
Fix aiohttp requirement for python < 3.6 2019-10-18 19:27:24 +02:00
8ee9abdd69
basetabs: return a copy of ChatTab.jid to prevent nasty (mutability) side-effects
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-14 15:43:56 +02:00
7587b954e3
basetabs: reorganise imports
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-14 15:43:02 +02:00
b2cf7c0ce8
plugins/ping: Remove safeJID call
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-14 15:03:09 +02:00
2ff5fdf347
bookmarks: use str where str is expected
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-14 13:47:48 +02:00
1e45e265a1
windows/bookmark_forms: Convert JID objects to str so that comparison succeeds
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-13 13:54:05 +02:00
a66e3903df MUC-PMs: correctly loop through bookmarks
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-10 14:58:50 +02:00
d62a2170e1 bookmarks: Convert specified jid to JID object if possible
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-10 14:58:44 +02:00
01bca5cccd
core/handlers: Add typing annotations
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-10 14:58:30 +02:00
Georg Lukas
d4d05aec03 MUC-PM: centralize and improve PM detection in all code paths 2019-10-10 14:57:19 +02:00
5032905f96
plugins/lastlog: Display time and nickname
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-10 13:45:09 +02:00
Emmanuel Gil Peyrot
4fa30ca764 data/doap.xml: mention MAM support, since !36 2019-09-22 23:13:33 +02:00
Emmanuel Gil Peyrot
df287adfbe data/doap.xml: mention avatar support 2019-09-22 23:13:12 +02:00
mathieui
41e4c95636
Prevent the logging module from vomiting all over stderr on OSError
it is unreadable and not very useful.
2019-09-19 23:14:55 +02:00
Emmanuel Gil Peyrot
31c605528c data/doap.xml: update to the latest schema. 2019-09-19 13:28:44 +02:00
472e4371b1
plugins/embed: use tab.jid instead of .name
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-15 12:26:50 +02:00
root
a399e59e46 Corrected the functionality of query_status 2019-09-13 04:24:26 +05:30
31751bcb61
poezio/mam: Remove superfluous time format conversions and fix parameter type
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-11 02:30:54 +02:00
055dcdd1d1
mam: Fix comment in on_scroll_up
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-10 23:54:58 +02:00
2417b115d2
mam: Only fetched mam when the buffer is running low in messages
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-10 23:49:59 +02:00
4137d8161a
tabs/basetabs: Document self.query_status
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-10 18:26:39 +02:00
faa3b22265
poezio/mam: add_messages_to_buffer returns a bool not None
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-10 18:26:21 +02:00
d1c239999c
poezio/mam: style fixes
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-10 18:25:52 +02:00
bf37cf5f5a
poezio/mam: remove unused imports, add missing md5 import
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-10 17:59:51 +02:00
73292f7f5e Merge remote-tracking branch 'origin/mr/46'
MAM refactoring!
2019-09-10 17:53:29 +02:00
e9a6ea7a59
Revert "tabs/privatetab: Fixes #3491: Add MUC <x/> marker in MUC-PMs. Thanks Ge0rG."
This reverts commit 0bf8727a92.
It doesn't actually work yet.

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-10 17:53:08 +02:00
0bf8727a92
tabs/privatetab: Fixes #3491: Add MUC <x/> marker in MUC-PMs. Thanks Ge0rG.
From [XEP-0045 §7.5](https://xmpp.org/extensions/xep-0045.html#privatemessage):
> To allow for proper synchronization of these messages to the user's
> other clients by Message Carbons (XEP-0280) [19], the sending client
> SHOULD add an  element qualified by the
> 'http://jabber.org/protocol/muc#user' namespace to the message.

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-07 21:07:02 +02:00
2373015273
tabs/privatetab: Remove unused safeJID import
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-07 21:06:41 +02:00
root
17e7f0768a Reorganize MAM 2019-09-05 17:42:27 +05:30
root
5e81fe2760 Removed error messages on startup. 2019-09-05 17:42:27 +05:30
root
81d9c267d3 Moved scroll_up code back to basetabs, added amount parameter to change no. of msgs per query. 2019-09-05 17:42:27 +05:30
feeadee893
core/commands: remove more safeJID calls
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-04 14:12:16 +02:00
Andrey Utkin
04677b2116 doc: update Gentoo package availability info
Signed-off-by: Andrey Utkin <andrey_utkin@gentoo.org>
2019-09-02 19:19:33 +02:00
d8638d5e31
Eradicate more safeJID calls
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-02 13:27:31 +02:00
7c7523e0ab
Only check for 110 to know if the presence is ours
This is only be needed for non-compliant servers. Removing as there
might be corner cases where it's actually harmful.

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-09-02 12:25:07 +02:00
mathieui
eec8dcc206 Merge branch 'mam' into 'master'
Fixes message duplication on /reconnect.

See merge request poezio/poezio!43
2019-08-26 21:01:20 +02:00
root
b8c7e16739 Disabled the history on /reconnect, if the tab is still present and has messages in it. 2019-08-27 00:05:39 +05:30
mathieui
4d3830b460
Do not run a /part command when disconnecting from poezio
Use the underlying function instead
2019-08-26 12:20:20 +02:00
mathieui
c8cd17f509
Use the right settings when reconnecting from poezio 2019-08-26 12:18:13 +02:00
mathieui
cdb0d2614d Merge branch 'mam_info' into 'master'
Removes error and info messages on startup. Fixes #3485

Closes #3485

See merge request poezio/poezio!44
2019-08-26 10:41:15 +02:00
root
bd5ebba7f8 Added action parameter in mam_scroll, so that MAM query made on join (or any other query) is not considered as 'pageup' 2019-08-26 05:53:03 +05:30
mathieui
0556b3d7a3
Remove code for loading logs
we MAM now
2019-08-25 23:05:06 +02:00
mathieui
45d12b9092
Fix private tabs
- receipts
- receiving messages
- showing our sent messages
2019-08-25 23:00:49 +02:00
mathieui
a157a21c87
Always feed a JID to open_conversation_window 2019-08-24 14:17:38 +02:00
mathieui
ea5977da4a
Fix /self 2019-08-24 14:12:40 +02:00
cbc460106f Merge branch 'remove-duplicated-display-code' into 'master'
Remove display code from command_say

See merge request poezio/poezio!42
2019-08-23 13:45:34 +02:00
mathieui
fe249417b2
Remove display code from command_say
Use instead the message handler as if we received the message as carbons
2019-08-23 13:35:49 +02:00