Commit Graph

15922 Commits

Author SHA1 Message Date
Philipp Hörist 6ba984d540 Add annotations 2018-10-07 00:46:38 +02:00
Philipp Hörist 16d0780d92 Fix pylint errors 2018-10-07 00:46:38 +02:00
Yann Leboulanger 64d1cb9ef9 fix running pylint 2018-10-07 00:46:38 +02:00
Philipp Hörist 6753c3e499 Fix pylint errors 2018-10-07 00:46:37 +02:00
Philipp Hörist 19ba1f669c Update pylintrc 2018-10-07 00:46:37 +02:00
Philipp Hörist fc9bf91115 Add mypy test to CI 2018-10-07 00:46:37 +02:00
Philipp Hörist 58ad5cd4d5 Fix pylint errors in common/modules 2018-10-07 00:46:37 +02:00
Philipp Hörist 7c523f4b79 Update pylintrc 2018-10-07 00:46:37 +02:00
Philipp Hörist 6abb9c626b Make some vars private 2018-10-07 00:46:37 +02:00
Philipp Hörist 375af2a3d9 Catch error if no translation is found 2018-10-07 00:46:37 +02:00
Philipp Hörist 8d896449c7 Fix mypy error regarding _() 2018-10-07 00:46:37 +02:00
Philipp Hörist 1b75403754 Refactor i18n
- Make _() available, so other modules can import it from i18n, we need
this because mypy cant handle _() in the builtins namespace
2018-10-07 00:46:36 +02:00
Philipp Hörist f5cef34910 Add annotations to modules/util.py 2018-10-07 00:46:36 +02:00
Philipp Hörist 9a778541b5 Add annotations for modules/__init__.py 2018-10-07 00:46:36 +02:00
Philipp Hörist df9651f33b Remove unnecessary code
NetworkIncomingEvent defines base_network_events and generate() already
2018-10-07 00:46:36 +02:00
Philipp Hörist d18f9b0716 Add mypy.ini 2018-10-07 00:46:36 +02:00
Philipp Hörist 844c71f240 Update .gitignore 2018-10-07 00:46:36 +02:00
Philipp Hörist 06c66aaff1 Add debug output for NetworkMonitor 2018-10-07 00:46:36 +02:00
Philipp Hörist 648ac9fe89 Fix subscribing to contact
Fixes #9321
2018-10-07 00:46:36 +02:00
Philipp Hörist 950130528d Request blocking list on connect 2018-10-07 00:46:36 +02:00
Philipp Hörist 204b673e86 Add Builder class 2018-10-07 00:46:36 +02:00
Philipp Hörist 9bd9bef3c3 Fix fallback for bookmark name 2018-10-07 00:46:36 +02:00
Philipp Hörist 069c0263e1 Improve speed of groupchat roster
- Save reference to contact in a dict instead of iterating the whole model
- Sort roster only once after all contacts have been added to the roster
- Speed up get_gc_contact()

Fixes #9334
2018-10-07 00:46:36 +02:00
Philipp Hörist 16712645a2 Windows: Fix translation
Fixes #9324
2018-10-07 00:46:35 +02:00
Philipp Hörist ba8d20ab78 Remove verbose logging of idle time 2018-10-07 00:46:35 +02:00
Philipp Hörist 3fbba447db Windows: Improve locked screen detection
UAC prompts count as locked screens, so only trigger extended away
when the screen is more than 10 seconds locked

Fixes #9117
2018-10-07 00:46:35 +02:00
Philipp Hörist fcda077493 Revert "Windows: Remove locked screen detection"
This reverts commit 05307bd609
2018-10-07 00:46:35 +02:00
Philipp Hörist 37420720fe Windows: Remove locked screen detection
This does not reliably tell us when the screen is locked.
For example this triggers when a UAC prompt is active.
From the Windows documentation there is no way to determine
if a workstation is locked

Fixes #9117
2018-10-07 00:46:35 +02:00
Philipp Hörist ebc0dd4536 Fix license comment format
every linter flags this as an error
2018-10-07 00:46:35 +02:00
Philipp Hörist 60c9a0383a Fix pyflakes/pycodestyle errors 2018-10-07 00:46:34 +02:00
pitchum 9a2d915d5d Bugfix: list index out of range when opening service discovery
Fixes #9301
2018-10-07 00:46:34 +02:00
Philipp Hörist 7a8892f021 Windows: Fix IPV6 for Windows 10+
Fixes #9326
2018-10-07 00:46:34 +02:00
Philipp Hörist dd267359be Fix pyflakes/pycodestyle errors 2018-10-07 00:46:34 +02:00
Philipp Hörist 4d53bd9064 Light refactring of bookmark code
- Convert xs:boolean values in bookmark module
- Use python booleans for minimize and autojoin in other parts of Gajim
- Use add_bookmark() instead of manipulating the bookmarks dict
2018-10-07 00:46:34 +02:00
Philipp Hörist 4d43fc4db5 Add a bookmark sorting method 2018-10-07 00:46:34 +02:00
Philipp Hörist 39c187ada4 Fix highlight on messages without time 2018-10-07 00:46:34 +02:00
André Apitzsch 9aed694143 music_track_listener: recognize playing song
when listener is enabled
2018-10-07 00:46:34 +02:00
André Apitzsch 64ee94fcd1 music_track_listener: don't hard code media players
inspired by 0ba346b750/js/ui/mpris.js
2018-10-07 00:46:34 +02:00
Philipp Hörist 3e73ee93e1 Add XEP-0398 optimizations
- If the server implements XEP-0398 we dont need to add the avatar sha
anymore, the server adds it for us.
- It also means we dont have to query our own avatar from vcard at start
because the server tells us the avatar sha that is published with the inital
presence reflection
2018-10-07 00:46:34 +02:00
Philipp Hörist d4d29f8309 Send all presence through the presence module 2018-10-07 00:46:33 +02:00
Philipp Hörist 42a7dbc79a Fix contact not beeing found after room destroy 2018-10-07 00:46:33 +02:00
Philipp Hörist b5414e3849 Disco the room after it has been created 2018-10-07 00:46:33 +02:00
Philipp Hörist d01dc442c8 Fix missing attribute 2018-10-07 00:46:33 +02:00
Sophie Herold afbc0c325f Unify to use app.get_account_label() 2018-10-07 00:46:33 +02:00
Philipp Hörist 41a7196620 Fix displaying MUC subjects with delay tag
Dont print it as "old" conversation, instead add the delay timestamp
at the end of the subject
2018-10-07 00:46:33 +02:00
Philipp Hörist a8534800b0 Parse delay after decryption
Delay could be encrypted with full stanza encryption
2018-10-07 00:46:33 +02:00
Yann Leboulanger 093ab598b8 improve string for translators 2018-10-07 00:46:33 +02:00
Yann Leboulanger 3305ad7710 better fix for joining groupchats with uppercase letters. Fixes #9198 2018-10-07 00:46:33 +02:00
Philipp Hörist f25634bff5 Register modules defined by plugins 2018-10-07 00:46:33 +02:00
Sophie Herold e1d01e0999 Show avatar in new message notifications 2018-10-07 00:46:32 +02:00