Commit graph

4177 commits

Author SHA1 Message Date
bab9d1625b omemo: catch xep_0384.MissingOwnKey exception
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-12-27 18:56:27 +01:00
fdf9b74056 omemo: don't deconstruct the result from the decrypt call
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-12-27 18:56:27 +01:00
2348f3705c omemo: Update plugin to using poezio.xdg
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-12-27 18:56:27 +01:00
lumi
2ff48b7adf Expand the status command, make decryption work, put a hack into the core so I can handle messages without bodies. 2019-12-27 18:56:27 +01:00
ebbdbc2cbd OMEMO plugin: first draft
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-12-27 18:56:27 +01:00
mathieui
d7d4e30eec Merge branch 'fix-plugin-names' into 'master'
Plugins: use import_module for module in poezio_plugins

See merge request poezio/poezio!52
2019-12-27 18:49:26 +01:00
mathieui
6a7f5326da
Plugins: use import_module for module in poezio_plugins
And do not rely on the "module name" to index the plugins, use the
intended plugin name instead.
2019-12-27 16:58:20 +01:00
12a9528d62
WIP: Allow blocking commands in ConversationTab
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-12-22 19:27:08 +01:00
4d7a19da81 Merge branch 'safejid-foo' into 'master'
Safejid foo

See merge request poezio/poezio!50
2019-11-21 03:01:37 +01:00
f157a46bd6
core/commands: Move import order to please linter
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-11-21 02:50:07 +01:00
647655152f
Remove safeJID call in destroy_room
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-11-21 02:49:04 +01:00
louiz’
d65ad614b3 Replace the %date% output with Year-Month-Day
Instead of some locale-specific format
2019-11-19 14:38:51 +01:00
louiz’
47765d0d40
Merge pull request #6 from poezio/pull-request-template
Create a pull request template
2019-11-03 18:38:08 +01:00
louiz’
3e8ce77048
Create a pull request template
To redirect people on gitlab.
2019-11-03 16:35:48 +01:00
mathieui
33ef0331e9
Add testing for python 3.7
since python:3 is now 3.8
2019-10-27 20:05:00 +01:00
mathieui
8499f1cbc9
Fix syntax warnings (thanks python 3.8) 2019-10-27 20:04:11 +01:00
mathieui
5928f02bfc
Disable pylint on lines dedicated to mypy
Pylint doesn’t read the typeshed.
2019-10-27 20:02:13 +01:00
mathieui
abe1941abf
CI: add a linting stage, and put mypy in there
Obviously failing at the moment.
2019-10-27 14:51:27 +01:00
mathieui
80a7babc0c
Type curses windows 2019-10-27 14:48:27 +01:00
mathieui
2f4651d036
Make global objects not Optional
This reflects reality, despite the default values of the code.
We still need a better solution (singleton?).
2019-10-27 14:48:00 +01:00
mathieui
c0b9211941
Fix missing typing import 2019-10-26 21:48:07 +02:00
mathieui
2ba504ae9a
Fix a bug when removing an event handler 2019-10-26 21:44:17 +02:00
mathieui
5e3f2ab19f
Fix #3511 (fix traceback on first bookmark added) 2019-10-26 21:37:06 +02:00
4703c8506a
Bookmark: Change jid property to getter/setter to ensure it stays a JID
It's not like static-type checking was a thing in Python nowadays..
(mypy I'm looking at you)

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-26 00:57:20 +02:00
ea1ab71f02
BookmarksTab: Remove safeJID call
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-26 00:41:22 +02:00
86621d59fc
bookmarks: Bookmark.name should be an str
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-26 00:40:50 +02:00
mathieui
4820062b40
Revert "Disable the pylint CI test until upstream's bug is fixed"
This reverts commit 791d44f1b9.
2019-10-18 23:17:40 +02:00
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