Philipp Hörist
12c46fd09b
Dont return None on has_mam()
...
Fixes #9368
2018-10-07 00:46:59 +02:00
Philipp Hörist
d35a9f6a10
Add a configurable threshold for MAM in MUC
2018-10-07 00:46:58 +02:00
Philipp Hörist
65f74e3d9f
MUC: Set active chatstate on messages
2018-10-07 00:46:58 +02:00
Philipp Hörist
ba44f98d97
Fix the fix
2018-10-07 00:46:58 +02:00
Marcin Mielniczuk
9328475c22
Pylint CI improvements
...
* Move the pylint CI configuration to a separate script
* Update pylint in CI to 2.1.1
* Add pycurl to pylint whitelist
2018-10-07 00:46:58 +02:00
Philipp Hörist
38ac6a0637
Pass correct show state
2018-10-07 00:46:58 +02:00
Philipp Hörist
6cd619675f
Fix passing wrong type
2018-10-07 00:46:58 +02:00
Philipp Hörist
50c670e61b
Refactor Chat State Notifications
...
- Move code into chatstate module
- Refactor most of the code, make it much simpler
2018-10-07 00:46:57 +02:00
Daniel Brötzmann
0af65954be
Unify Emoticon and Emoji strings
2018-10-07 00:46:57 +02:00
Philipp Hörist
db34877191
MAM: Up the requested page size
2018-10-07 00:46:56 +02:00
Philipp Hörist
dd3bbf2bb7
Request security catalog from the barejid
...
- Some Code/UI cleanup
2018-10-07 00:46:56 +02:00
Philipp Hörist
e292b78a5d
Fix security labels
2018-10-07 00:46:56 +02:00
Philipp Hörist
cb1be1621d
Fix Dark Theme switch
...
- Move css_config to gtk module
- Add Combobox for overriding the current session setting
- Move theme methods to css_config
2018-10-07 00:46:55 +02:00
Philipp Hörist
ec76d8ac3b
Only use absolute imports from gtk module
...
- This reduces import cycles
2018-10-07 00:46:55 +02:00
Yann Leboulanger
3ab7f92856
handle error message from MUC correctly. Fixes #9280
2018-10-07 00:46:54 +02:00
Philipp Hörist
ad5f59ba49
configpaths: Add get_plugin_dirs() method
...
This helps with mypy because otherwise get() has multiple return types
This reduces our usage of cast()
2018-10-07 00:46:54 +02:00
Philipp Hörist
5db0178a15
Windows: Add debug logging switch in preferences
...
If debug logging is enabled verbose output is redirected to a file
in the user dir
2018-10-07 00:46:54 +02:00
Philipp Hörist
3bdcd53ff5
Dont parse our own nick on sent carbons
...
Fixes #9051
2018-10-07 00:46:53 +02:00
Philipp Hörist
9bbc2eceb3
Fix rest of mypy errors
...
- This allows us to run mypy on the full gajim folder
2018-10-07 00:46:53 +02:00
Philipp Hörist
eb8093d25f
Add annotations
...
- Remove some unused vars from app
2018-10-07 00:46:52 +02:00
Philipp Hörist
fa45935c11
Make SQL INSERT querys more resilient
...
Specify the column in which we insert otherwise downgrading Gajim is
not possible anymore because the query breaks if we modified the column
count in future
2018-10-07 00:46:51 +02:00
Philipp Hörist
4c38a309fc
Fix pylint errors
...
- deprecated-method
- anomalous-backslash-in-string
- cell-var-from-loop
- undefined-loop-variable
2018-10-07 00:46:51 +02:00
Philipp Hörist
16f7620204
pylint W0143 is not available on pylint < 2.0
2018-10-07 00:46:50 +02:00
Philipp Hörist
60173c06db
Fix pylint errors
...
- duplicate-key
- eval-used
- comparison-with-callable
2018-10-07 00:46:50 +02:00
Philipp Hörist
64487929a6
Fix pylint errors
...
- pointless-statement
- pointless-string-statement
- unnecessary-lambda
2018-10-07 00:46:50 +02:00
Philipp Hörist
99efc4a9b4
Fix pylint errors
...
- consider-using-enumerate
- unneeded-not
- unidiomatic-typecheck
2018-10-07 00:46:49 +02:00
Philipp Hörist
c156f02cc0
Fix redefined-builtin pylint errors
2018-10-07 00:46:48 +02:00
Philipp Hörist
f12dfb811d
Fix trailing-whitespace pylint errors
2018-10-07 00:46:48 +02:00
Philipp Hörist
e842298724
Fix bad-whitespace pylint errors
2018-10-07 00:46:48 +02:00
Philipp Hörist
a65d88c1cd
Fix multiple-statements pylint errors
2018-10-07 00:46:47 +02:00
Philipp Hörist
5d1de209a8
Fix singleton-comparison pylint errors
2018-10-07 00:46:47 +02:00
Philipp Hörist
dad5331bf2
Fix no-else-return pylint errors
2018-10-07 00:46:46 +02:00
Philipp Hörist
b9edcceb4c
Fix redefined-argument-from-local pylint errors
2018-10-07 00:46:45 +02:00
Philipp Hörist
c5ca89558d
keys() doesnt return list() in python3
2018-10-07 00:46:45 +02:00
Philipp Hörist
bc70b24d80
Fix trailing-comma-tuple pylint errors
2018-10-07 00:46:45 +02:00
Philipp Hörist
acb0bacc09
Fix simplifiable-if-statement pylint errors
2018-10-07 00:46:45 +02:00
Philipp Hörist
defe74cc06
Fix literal-comparison pylint errors
2018-10-07 00:46:45 +02:00
Philipp Hörist
4fb78dfbfa
Use keys() iteration if we modify the dict
2018-10-07 00:46:44 +02:00
Philipp Hörist
c4bd6d6ab2
Fix consider-iterating-dictionary pylint errors
2018-10-07 00:46:44 +02:00
Philipp Hörist
407dc04b28
Fix pylint errors
2018-10-07 00:46:44 +02:00
Philipp Hörist
cebd83d436
Fix unused-variable pylint errors
2018-10-07 00:46:44 +02:00
Philipp Hörist
6305fc69b9
Fix logging-not-lazy pylint errors
2018-10-07 00:46:43 +02:00
Philipp Hörist
5ff08236bb
Fix bare-except pylint errors
2018-10-07 00:46:42 +02:00
Philipp Hörist
1c7f347a08
Fix missing time attribute
...
This was removed by accident
2018-10-07 00:46:42 +02:00
Philipp Hörist
eb6f5761ec
Fix redefined-outer-name pylint errors
2018-10-07 00:46:42 +02:00
Philipp Hörist
a6525e19a2
Fix superfluous-parens pylint errors
2018-10-07 00:46:41 +02:00
Philipp Hörist
54776f5877
Fix evaluation for subject change
2018-10-07 00:46:41 +02:00
Philipp Hörist
0b5c8a3b46
Dont retract pep items on UserXEPs
...
This leads to multiple problems
1. We cant assume only items with id='current' are stored in the node
which would lead to retracting 'current' but another item would become
the last published and sent to users
2. Even if we have a SingletonNode retracting the only item means the Node
would be empty and offline clients would not receive the last published item
on coming online, because there is no item anymore
Instead we always publish an empty item from now on
2018-10-07 00:46:41 +02:00
Philipp Hörist
f00d8087ad
Fix sending empty pep data
2018-10-07 00:46:41 +02:00
Philipp Hörist
7cf53e901b
Fix useless-object-inheritance pylint errors
2018-10-07 00:46:40 +02:00
Philipp Hörist
d011be2d89
Fix unsued-import pylint errors
2018-10-07 00:46:40 +02:00
Philipp Hörist
a3c687dae1
Fix len-as-condition pylint errors
2018-10-07 00:46:39 +02:00
Philipp Hörist
e953820ff8
Zeroconf: Store time of outgoing messages
2018-10-07 00:46:39 +02:00
Philipp Hörist
77c9b3a98d
Add annotations and fix pylint/mypy errors
2018-10-07 00:46:38 +02:00
Philipp Hörist
9bfa2d9258
fuzzyclock: Fix pylint errors
2018-10-07 00:46:38 +02:00
Philipp Hörist
6ba984d540
Add annotations
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
58ad5cd4d5
Fix pylint errors in common/modules
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
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
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
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
7a8892f021
Windows: Fix IPV6 for Windows 10+
...
Fixes #9326
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
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
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
Philipp Hörist
f25634bff5
Register modules defined by plugins
2018-10-07 00:46:33 +02:00
André Apitzsch
501111b93e
Time: use classes from standard library
2018-10-07 00:42:00 +02:00
Philipp Hörist
163f98f7c4
Windows: Fix gstreamer/farstream plugin paths
2018-08-25 09:42:09 +02:00
Philipp Hörist
33effbbeb6
Call link() on correct object
2018-08-25 09:42:09 +02:00
Philipp Hörist
2e47f93214
Display only emojis the font supports
...
Fixes #9299
2018-08-25 09:42:09 +02:00
Philipp Hörist
6f8ffb131a
Add JID to VcardReceivedEvent
2018-08-19 16:43:30 +02:00
Philipp Hörist
c4dfc0f8f2
Caps: Lower log level
2018-08-19 10:50:51 +02:00
Yann Leboulanger
c49f9d60ab
fix jingle negotiation from an XMPP point of view
2018-08-18 16:05:33 +02:00
Philipp Hörist
bab834814e
Use a python 3.5 compat method to scan dirs
2018-08-18 14:06:54 +02:00
Philipp Hörist
c8c44f5a78
Fix XMLConsole
...
- Print the stream header again
- Fix template button, it should not be translated
2018-08-18 12:35:21 +02:00
Philipp Hörist
5feb4becfd
Rework Emoji implementation
...
- Use emoji data from a generated dict based on the offical unicode docs,
this makes it easier to update in the future
- Rewrite the emoji chooser
- Add a search field to the emoji chooser
- The emoji chooser is loaded async
- Update to current Unicode 11 Noto theme
2018-08-17 21:55:42 +02:00
Philipp Hörist
9d5131b8b4
Rework Gajim Theming
...
- Save all Theme settings to .css instead of the config file
- Add a gajim-dark.css
- Refactor the ThemesWindow
2018-08-16 22:53:33 +02:00
Sophie Herold
ee3cc9cbab
Reduce number of notifications kept in message tray
2018-08-16 22:48:40 +02:00
Philipp Hörist
2ce78334ca
Fix direct MUC invite
2018-08-04 21:41:44 +02:00
Philipp Hörist
043e764896
Make Service Registration a Gtk.Assistant
...
- Move all xmpp Register methods into the register module
2018-08-04 19:47:57 +02:00
Sophie Herold
99ec800856
Rework History Dialog
2018-08-04 11:04:36 +02:00