Commit Graph

145 Commits

Author SHA1 Message Date
Philipp Hörist ad5a8fd390 Pass xml:lang to nbxmpp 2019-01-08 20:21:47 +01:00
Philipp Hörist f197358e2f Import _() instead of using builtin namespace
- Prepare for removing the global installed _() method in builtins
- Sort some imports along the way
2018-10-07 00:47:00 +02:00
Philipp Hörist 048224d5b6 Fix resume after sm timeout
Fixes #9364
2018-10-07 00:46:59 +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 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
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 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 dad5331bf2 Fix no-else-return pylint errors 2018-10-07 00:46:46 +02:00
Philipp Hörist defe74cc06 Fix literal-comparison pylint errors 2018-10-07 00:46:45 +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 a3c687dae1 Fix len-as-condition pylint errors 2018-10-07 00:46:39 +02:00
Philipp Hörist 6753c3e499 Fix pylint errors 2018-10-07 00:46:37 +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 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 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 043e764896 Make Service Registration a Gtk.Assistant
- Move all xmpp Register methods into the register module
2018-08-04 19:47:57 +02:00
Philipp Hörist 560a122ab5 Add error message to change password dialog
- Move register methods to own module
2018-08-01 00:35:42 +02:00
Philipp Hörist 394d38e663 Add lost server discovery query 2018-07-29 22:16:06 +02:00
Philipp Hörist 7584037fc7 Fix typo 2018-07-28 13:32:37 +02:00
Philipp Hörist 5a6f03dea4 Add connect_maschine()
Add method that sequentially works the steps we have to do
before sending first presence

- Move Delimiter into own module
- Move Metacontacts into own module
2018-07-27 16:01:10 +02:00
Philipp Hörist db77fa1ace Add roster implementation to Gajim 2018-07-26 20:38:00 +02:00
Philipp Hörist 5d24c9bbdd Move subscription code into presence module 2018-07-23 23:04:07 +02:00
Philipp Hörist ea34959b35 Catch cert error in posh query 2018-07-23 19:51:25 +02:00
Philipp Hörist 07c87a4194 Rewrite discovery code and move it into own module 2018-07-22 16:20:00 +02:00
Philipp Hörist afb0306160 Move security labels into own module 2018-07-22 16:19:59 +02:00
Philipp Hörist 78858f7c82 Move more MUC methods into muc module 2018-07-22 16:19:53 +02:00
Philipp Hörist 9f65bca3d3 Remove traces of forwarding messages (XEP-0146)
This is deprecated because its very insecure and also not needed
anymore because of MAM
2018-07-21 08:50:46 +02:00
Philipp Hörist bff5f14b92 Move invites into MUC module 2018-07-17 18:38:36 +02:00
Philipp Hörist ebbe06d587 Refactor MAM into own module
- Rework the MAM Preference dialog
- Move MAM Preference dialog into a new gtk module
- Refactor all MAM code into own module
- Refactor the MAM code itself so we can easier test it in the future
- Add a misc module for smaller XEPs and move EME, Last Message Correction
Delay, OOB into it
- Add dedicated module for XEP-0082 Time Profiles
2018-07-15 14:26:00 +02:00
Philipp Hörist 828d74570a Remove print statement 2018-07-09 19:52:57 +02:00
Philipp Hörist bd79fe629f Refactor Privacy and Blocking into own modules 2018-07-08 16:44:14 +02:00
Philipp Hörist 3cfd82b0c2 Fix method call 2018-07-08 10:31:05 +02:00
Philipp Hörist e918ac85fe Remove streamhost redirect
After asking around this is a dead feature.
Because servers cannot be sure if clients support redirection, a server
using this feature would essentially risk that his users are not able to
connect at all.
2018-07-07 20:00:09 +02:00
Philipp Hörist 3e4cf4a07d Change nbxmpp event we use for XMLConsole 2018-07-07 18:28:43 +02:00
Philipp Hörist 59428d2f2f Register all available modules automatically 2018-07-07 13:52:44 +02:00
Philipp Hörist 09aead3e7f Remove unused imports 2018-07-07 01:49:50 +02:00
Philipp Hörist 4bcdbde2c8 Move httpupload into modules 2018-07-07 01:49:50 +02:00
Philipp Hörist 51e85f14a3 Remove unused code 2018-07-05 21:41:28 +02:00
Philipp Hörist fe3c1b4fbd Refactor UserNickname into own module 2018-07-05 20:20:22 +02:00
Philipp Hörist bbf3a544e8 Refactor UserLocation into own module 2018-07-05 19:38:03 +02:00
Philipp Hörist 14f088c2d9 Refactor UserMood into own module 2018-07-05 19:37:51 +02:00
Philipp Hörist 42ccbe7499 Dont fail if modules are not registered
This is for Zeroconf so we dont have to test in GUI always for
account != local

Fixes #9229
2018-07-05 00:16:42 +02:00
Philipp Hörist a4350a812b Refactor UserTune into own module 2018-07-05 00:16:42 +02:00