Commit graph

327 commits

Author SHA1 Message Date
Philipp Hörist
06c4ce60b9 Show correct account lable in tooltip
Fixes 
2018-04-29 23:47:30 +02:00
Philipp Hörist
56a5d01609 Dont allow plain BOSH by default 2018-04-29 23:34:46 +02:00
Philipp Hörist
b8554e3e22 Jingle: Check first if we have a content
Fixes 
2018-04-29 23:30:08 +02:00
Philipp Hörist
707599dd86 Dont determine paths at module import time 2018-04-25 21:26:02 +02:00
Philipp Hörist
8c23d5a4b5 Move some imports 2018-04-25 21:24:05 +02:00
Philipp Hörist
105427b8fd Use consistent way to get paths
This lets us now import the app module without setting paths
2018-04-25 20:49:37 +02:00
Philipp Hörist
52cbae69ee Refactor Gajim startup
Remove as much as possible startup code from GtkApplication to stay
more true to our goal to separate GUI from the rest of Gajim
2018-04-25 19:16:38 +02:00
Philipp Hörist
e2383fd7a4 Refactor i18n module
- Move everything translation related from gajim.py to i18n.py
2018-04-24 23:03:19 +02:00
Philipp Hörist
21d4d0cb1e Remove unused import / codestyle
Pass args to logging method instead of string formatting
2018-04-24 21:34:53 +02:00
Philipp Hörist
e265514d88 Detect dependencys only on demand
This allows us to import the app module without triggering
dependency detection

Also add is_installed() for checking if a dependency is installed and
disable_dependency() in case we dont want to use a dependency
2018-04-24 19:36:33 +02:00
Philipp Hörist
986898f69d Dont check for OpenSSL we require it on install 2018-04-23 23:47:17 +02:00
Philipp Hörist
5ee45b86e9 Refactor database migration
- Move database migration to the logger module
- Dont depend on Gajim version for migration use PRAGMA user_version
- Refactoring of some methods in the logger module
- Dont use cursor object, if there is no reason
- Make some attributes and methods private
2018-04-23 21:27:01 +02:00
Philipp Hörist
4c1bfda48d Fix const imports 2018-04-23 18:32:01 +02:00
Philipp Hörist
4f2033faff Move constants into const module 2018-04-23 18:23:57 +02:00
Philipp Hörist
86bfc81ad3 Remove old unused migration method 2018-04-23 17:34:14 +02:00
Philipp Hörist
3efa731fbf Add stanza_id index also when we create the DB 2018-04-23 00:10:35 +02:00
Philipp Hörist
8306f076b3 Move path creation into configpaths module 2018-04-22 23:12:34 +02:00
Philipp Hörist
188fb85bd0 Move DB creating into logger module 2018-04-22 22:16:17 +02:00
Philipp Hörist
efd2ca50c6 Remove unused old migration method 2018-04-22 02:30:34 +02:00
Philipp Hörist
3ad539cbf2 Make sure all config dirs get created
LOG_DB_FOLDER and CACHE_DB_FOLDER are equal to MY_DATA and MY_CACHE
2018-04-22 02:30:08 +02:00
Philipp Hörist
220bf35827 Create some folders only on demand 2018-04-22 00:55:48 +02:00
Philipp Hörist
c0c16dbf94 Dont change path names because plugins use them 2018-04-21 21:28:19 +02:00
Philipp Hörist
848c5cbdd0 More refactoring around paths
- Remove old config dir migration
- Remove some unused config paths
- Rewrite configpaths.init()
- Simplify creating paths in check_paths
2018-04-21 21:19:32 +02:00
Philipp Hörist
72e69a59af Fix setting custom config root 2018-04-21 14:47:47 +02:00
Philipp Hörist
4a26ecb12c Refactor configpaths
- init configpaths earlier so logging can access it to store debug logs
- First step for more consistency across Gajim when looking up paths

  Recommended usage for the future:
  app.configpaths.get()
  configpaths.get()
2018-04-21 12:48:57 +02:00
philipp
8e9c040acf Support http:upload:0 2018-04-20 08:35:40 -04:00
Philipp Hörist
dadc85bb52 Fix tests 2018-04-19 22:22:04 +02:00
Philipp Hörist
290e761f88 Add support for Room Avatars
- Groupchats promote a vcard hash with presence

Refactoring:

- Dont delete groupchat contacts if they are maximized from the roster
- Roster and GroupchatControl use the same contact object
2018-04-19 22:11:41 +02:00
Philipp Hörist
70a7000d44 Dont be lenient with namespace 2018-04-19 17:59:17 +02:00
Philipp Hörist
e3066fb5ca Improve AccountsWindow design
Fixes 
2018-04-15 23:36:34 +02:00
Philipp Hörist
93af68f81c Dont show error when receiving invalid avatars
Fixes 
2018-04-14 10:34:58 +02:00
Yann Leboulanger
879e03449c fix some py2->py3 missing things. Fixes 2018-04-07 23:06:48 +02:00
Yann Leboulanger
27e45856b0 prevent traceback. Fixes 2018-04-07 22:04:32 +02:00
Philipp Hörist
711f3cbbb0 Encode filenames before sending
Fixes 
2018-04-05 19:38:17 +02:00
Philipp Hörist
1b8d76bf9e Add missing return statement 2018-04-04 22:10:34 +02:00
Philipp Hörist
f29d57e50b Catch invalid IQ stanzas and log them
Fixes 
2018-04-03 19:54:09 +02:00
Philipp Hörist
e326aabf5f Decode PGP decrypted messages 2018-03-31 01:18:28 +02:00
Yann Leboulanger
c2184aaf8c remove bookmark and close muc when destroying the room. Fixes 2018-03-29 11:01:25 +02:00
Yann Leboulanger
a884ba6762 prevent traceback. Fixes 2018-03-29 09:41:40 +02:00
Yann Leboulanger
f52e8d889c don't traceback on account deletion. Fixes 2018-03-28 11:36:14 +02:00
Yann Leboulanger
a3853f6958 fix string 2018-03-27 15:02:11 +02:00
Philipp Hörist
5794d54d1c Dont print status if it has not changed
Only print the status, if status has changed or the status message

Clients announce there idle-time with presences but adding a idle-time
does not necessarily mean they went from available -> away

Fixes 
2018-03-26 23:47:43 +02:00
Philipp Hörist
99b3aebc99 Remove unused imports 2018-03-26 01:06:56 +02:00
Yann Leboulanger
faa88819a1 improve some strings 2018-03-25 16:26:29 +02:00
Philipp Hörist
040521397e Dont use invalid sound devices
PulseAudio has devices that are None

Fixes 
2018-03-25 00:48:29 +01:00
Philipp Hörist
6207e607a8 Fix NoneType Error
element can be None if there was a error while calling Gst.ElementFactory.make()
2018-03-24 21:57:40 +01:00
Philipp Hörist
0fb19c2b1c Show error message on account registration
Prefer the error message text over the error code
2018-03-24 17:55:32 +01:00
Philipp Hörist
058d3db1b0 Logger: Test for None after fetchone()
fetchone() returns None when nothing is found
len(None) yields a TypeError
2018-03-24 17:13:15 +01:00
Philipp Hörist
77dc975023 Only test if MUCs are on the blacklist 2018-03-24 10:52:16 +01:00
Philipp Hörist
9314a0543b Add non-compliant mam:2 MUCs to blacklist
For MUCs on the blacklist we do a deduplication not depending on
stanza-id

This patch is only for current Prosody 0.10 stable and the mod_mam_muc
module which does not add stanza-id to the messages.

This can be removed once Prosody 0.11 hits or the module is updated
2018-03-24 01:47:03 +01:00