Commit Graph

15729 Commits

Author SHA1 Message Date
Philipp Hörist f7a139eac2 Zeroconf: Store time of outgoing messages 2018-09-15 12:00:32 +02:00
Philipp Hörist 97ee8082fe HistoryManager: Load css config in standalone 2018-09-15 11:44:09 +02:00
Philipp Hörist eca69e399b Fix Windows build
- Downgrade to glib2 2.56.2 because higher is broken on Windows 7
- Dont abort build if depchecker fails on some files
2018-09-15 02:01:40 +02:00
Philipp Hörist 3b5b4574ba Update .gitignore 2018-09-14 23:35:38 +02:00
Philipp Hörist 64840cd0b0 Update win/dev_env.sh 2018-09-14 23:17:16 +02:00
Philipp Hörist d54d4bc232 Add annotations and fix pylint/mypy errors 2018-09-13 23:56:12 +02:00
Philipp Hörist a62f348a21 Add stubs file for emoji_data
Otherwise mypy hangs because the file is to big
2018-09-13 23:54:29 +02:00
Philipp Hörist 58a3b83083 Update mypy.ini 2018-09-13 19:59:03 +02:00
Philipp Hörist 62c54525d8 fuzzyclock: Fix pylint errors 2018-09-13 00:33:54 +02:00
Philipp Hörist 64aec8adce Add annotations 2018-09-12 21:08:37 +02:00
Philipp Hörist ee254d25d2 Fix pylint errors 2018-09-12 21:08:37 +02:00
Yann Leboulanger 6b221e7059 fix running pylint 2018-09-12 08:42:23 +02:00
Philipp Hörist b99632ab03 Fix pylint errors 2018-09-12 00:01:54 +02:00
Philipp Hörist 691678b06a Update pylintrc 2018-09-11 23:49:59 +02:00
Philipp Hörist c9455de4bd Add mypy test to CI 2018-09-11 22:46:57 +02:00
Philipp Hörist 09c5183575 Fix pylint errors in common/modules 2018-09-11 22:25:55 +02:00
Philipp Hörist 3080946ea1 Update pylintrc 2018-09-11 22:24:08 +02:00
Philipp Hörist 4ad38d5398 Make some vars private 2018-09-11 20:00:34 +02:00
Philipp Hörist dad7def794 Catch error if no translation is found 2018-09-11 19:37:48 +02:00
Philipp Hörist a34bf54c46 Fix mypy error regarding _() 2018-09-11 19:29:08 +02:00
Philipp Hörist 21672fadee Refactor i18n
- Make _() available, so other modules can import it from i18n, we need
this because mypy cant handle _() in the builtins namespace
2018-09-11 19:27:10 +02:00
Philipp Hörist 2649b3d01e Add annotations to modules/util.py 2018-09-11 00:47:59 +02:00
Philipp Hörist ca9b4cb596 Add annotations for modules/__init__.py 2018-09-11 00:47:54 +02:00
Philipp Hörist bcf2a3770d Remove unnecessary code
NetworkIncomingEvent defines base_network_events and generate() already
2018-09-11 00:37:00 +02:00
Philipp Hörist 7140c2d2a1 Add mypy.ini 2018-09-11 00:36:54 +02:00
Philipp Hörist 6ac31ba5b6 Update .gitignore 2018-09-11 00:03:12 +02:00
Philipp Hörist 0fba2b8a58 Add debug output for NetworkMonitor 2018-09-10 20:27:22 +02:00
Philipp Hörist f82cd95f2c Fix subscribing to contact
Fixes #9321
2018-09-09 17:43:17 +02:00
Philipp Hörist 432704005d Request blocking list on connect 2018-09-09 16:50:55 +02:00
Philipp Hörist a497051965 Add Builder class 2018-09-09 15:29:55 +02:00
Philipp Hörist 0a20cb5997 Fix fallback for bookmark name 2018-09-08 23:55:31 +02:00
Philipp Hörist 27dd36cca3 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-09-08 20:49:26 +02:00
Philipp Hörist 52e09cf526 Windows: Fix translation
Fixes #9324
2018-09-08 08:40:42 +02:00
Philipp Hörist c8b31dffbb Remove verbose logging of idle time 2018-09-06 21:44:31 +02:00
Philipp Hörist bba88cf609 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-09-06 21:41:38 +02:00
Philipp Hörist 3a16ccb4d4 Revert "Windows: Remove locked screen detection"
This reverts commit 05307bd609
2018-09-06 21:38:41 +02:00
Philipp Hörist 05307bd609 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-09-06 21:17:05 +02:00
Philipp Hörist a4a136566f Fix license comment format
every linter flags this as an error
2018-09-05 02:59:34 +02:00
Philipp Hörist 856a874dd5 Fix pyflakes/pycodestyle errors 2018-09-05 02:34:36 +02:00
pitchum f91408fbaf Bugfix: list index out of range when opening service discovery
Fixes #9301
2018-09-05 02:29:04 +02:00
Philipp Hörist 9dd747dfe5 Windows: Fix IPV6 for Windows 10+
Fixes #9326
2018-09-05 02:14:51 +02:00
Philipp Hörist a6631398f7 Fix pyflakes/pycodestyle errors 2018-09-05 00:33:08 +02:00
Philipp Hörist 27f7580688 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-09-05 00:06:59 +02:00
Philipp Hörist b62335eaf5 Add a bookmark sorting method 2018-09-04 23:22:57 +02:00
Philipp Hörist a9a115d359 Fix highlight on messages without time 2018-09-02 23:31:42 +02:00
André Apitzsch b8444fec64 music_track_listener: recognize playing song
when listener is enabled
2018-09-02 18:58:28 +02:00
André Apitzsch b56f9c6fac music_track_listener: don't hard code media players
inspired by 0ba346b750/js/ui/mpris.js
2018-09-02 00:46:37 +02:00
Philipp Hörist be6c2d4f7a 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-09-01 20:40:20 +02:00
Philipp Hörist c68f4f1041 Send all presence through the presence module 2018-09-01 18:06:21 +02:00
Philipp Hörist 7d723d7b98 Fix contact not beeing found after room destroy 2018-09-01 12:44:45 +02:00