Commit Graph

853 Commits

Author SHA1 Message Date
Philipp Hörist 15bcd80e19 Call JoinGroupchat Dialog with account 2018-07-06 21:56:17 +02:00
Philipp Hörist 63a27ace61 Use open JoinGroupchat Dialog when browsing MUCs 2018-07-06 21:43:53 +02:00
Philipp Hörist d45fa13ee9 Refactor atom into new module and disable it
Gajim lacks a good UI for microblogging

Fixes #9218
2018-07-06 21:02:06 +02:00
Philipp Hörist 70661b70d3 Rename method to something more appropriate 2018-07-06 20:12:50 +02:00
Philipp Hörist 6a363678f4 Dont handle all pep events 2018-07-06 20:05:57 +02:00
Philipp Hörist ccb3c2decc Move rest of UserAvatar into new module 2018-07-06 19:55:13 +02:00
Philipp Hörist 0a6b2126b3 Raise NodeProcessed after processing ROSTERX 2018-07-05 23:55:09 +02:00
Philipp Hörist a1e1e56dda Fix logic error when printing status 2018-07-05 22:03:06 +02:00
Philipp Hörist 51e85f14a3 Remove unused code 2018-07-05 21:41:28 +02:00
Philipp Hörist 503ee35bd0 Add message handlers for AUTH and ROSTERX 2018-07-05 21:09:55 +02:00
Philipp Hörist fe3c1b4fbd Refactor UserNickname into own module 2018-07-05 20:20:22 +02:00
Philipp Hörist b04f9af4c5 Fix copy/paste typo 2018-07-05 19:54:32 +02:00
Philipp Hörist 31d6235881 Fix retracting UserTune/UserActivity 2018-07-05 19:38:41 +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 1712743fd5 Fix typo 2018-07-05 18:14:36 +02:00
Philipp Hörist 3b7055ca74 Fix regression from 2ca0ca38
Fixes #9230
2018-07-05 18:06:48 +02:00
Philipp Hörist 73f290b518 Fix incorrect argument 2018-07-05 00:28:09 +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
Philipp Hörist 568c2d93a0 Make new pep module more abstract 2018-07-05 00:16:32 +02:00
Philipp Hörist b7775afd0c Refactor UserActivity and PEP into own modules 2018-07-03 20:00:31 +02:00
André Apitzsch 0b5bb998c3 Fix AttributeError: 'VersionResultReceivedEvent' object has no attribute 'getResource' 2018-07-01 23:43:50 +02:00
Philipp Hörist 2ca0ca38a5 Refactor Pubsub/Bookmarks/UserAvatar into own modules 2018-07-01 22:35:56 +02:00
Philipp Hörist 858e472ef4 Fix showing notifications in the roster
There is a config setting in Gajim that allows to issue notifications
even if a chatcontrol is open. The config setting was only used for
system/desktop notifications in that case. Now it also controls if
a notification is shown in the roster.

Fixes #9223
2018-07-01 19:00:43 +02:00
Philipp Hörist 0dde1759e8 Make Profile a GtkApplicationWindow
Fixes #9180
2018-07-01 13:30:13 +02:00
Sophie Herold d6501898d8 Polish Profile Dialog 2018-07-01 12:59:00 +02:00
Alexander Krotov 80fee32223 Rename plugin attribute "allow_privatchat" into "allow_privatechat" 2018-07-01 05:32:41 +03:00
Philipp Hörist 9c6a8df658 Fix updating room avatar correctly 2018-06-30 20:02:16 +02:00
Philipp Hörist 3b147a8c7f Fix logging arguments 2018-06-30 19:41:03 +02:00
Philipp Hörist 8b800f4646 Refactor VCard code into own modules 2018-06-30 19:32:36 +02:00
Philipp Hörist 71a82b5c3e Remove unused method 2018-06-30 13:11:27 +02:00
Philipp Hörist 5bc9822cec Call notify check methods with JID arg
For subscription requests we dont have a contact obj
2018-06-30 11:02:30 +02:00
Alexander Krotov 7fa4c9e1c2 Spellcheck 2018-06-28 23:37:34 +02:00
Alexander Krotov 2e58ffdd49 Change data_form_window.ui to avoid "Overriding tab label for notebook" warning 2018-06-28 23:26:15 +02:00
Philipp Hörist b0ce012ce3 Remove RC4-SHA because it is insecure
Newer openssl version would not use this even if it was stated in our cipher string
2018-06-28 18:43:15 +02:00
Philipp Hörist ce9af46fc3 Fix join groupchat dialog with multiple accounts
The dialog didnt show the account combobox when activated
via CTRL + J from the Roster

Also add a application action for join groupchat
2018-06-28 00:04:17 +02:00
Philipp Hörist 129f72bf8e Refactor http auth code into own module 2018-06-25 23:47:06 +02:00
Philipp Hörist 8fa1ee4617 Refactor last activity code into own module 2018-06-25 23:00:40 +02:00
Philipp Hörist b74706afcf Refactor roster item exchange code into own module 2018-06-25 22:43:09 +02:00
Philipp Hörist f382ce2a6c Remove unused code 2018-06-25 20:08:48 +02:00
Philipp Hörist c39da015cc Refactor annotations code into own module 2018-06-25 20:04:56 +02:00
Philipp Hörist a0bc6f0155 Refactor search code into own module 2018-06-25 19:34:10 +02:00
Philipp Hörist 6d2a07df70 Remove support for XEP-0090
This is deprecated almost 10 years
2018-06-24 23:33:42 +02:00
Philipp Hörist 7b957a2876 Refactor ping code into own module 2018-06-24 23:33:42 +02:00
Philipp Hörist 81d9e1bcf2 Refactor software version code into own module 2018-06-24 23:33:42 +02:00
Philipp Hörist 1499010394 Refactor entity time code into own module 2018-06-24 23:33:42 +02:00
Alexander Krotov 10e1e1fe14 Replace progress bars in ad-hoc commands window with spinners
Progress bar "pulse" method indicates that something has been done. For example, when indexing files, it can indicate that one file has been processed, but the number of files to process is unknown. In case of ad-hoc commands, there is only an indication that Gajim is waiting for the network, so spinner is more appropriate here.
2018-06-24 02:45:01 +03:00
Philipp Hörist fd137be30f Send cancel IQ if muc configuration is aborted
Fixes #9069
2018-06-23 23:36:26 +02:00
Philipp Hörist a30a61e5ff Fix joining rooms with upper cases
Fixes #9198
2018-06-23 22:33:03 +02:00
Philipp Hörist 9b07cf8d41 Add loading single builder objects on Windows
This was still missing from the Windows translation fix
2018-06-23 20:35:16 +02:00
Alexander Krotov bd4aa0f40f Replace ad-hoc command radio buttons with a list
Radio buttons are more suitable for static lists of options.
GNOME seems to be using lists in similar situations, for example to show a list of network printers.
This also makes it possible to search a command by typing.
2018-06-23 21:21:55 +03:00
Philipp Hörist 78ebaefaec Dont punycode encode all domain names
RFC7622 3.2.1

... This implies that the string MUST NOT include A-labels ...

Fixes #9211
2018-06-23 20:15:00 +02:00
Philipp Hörist 86eddc2ee9 Remove unused config option log_encrypted_sessions
Fixes #9189
2018-06-23 17:13:57 +02:00
Philipp Hörist 23c302ca70 Fix translation on Windows
Fixes #8658
2018-06-23 17:07:43 +02:00
Philipp Hörist af11aa985b Make sure show is always a string
This is so we hopefully can find some bugs
2018-06-22 20:23:35 +02:00
Alexander Krotov 672f02b3b0 Fix usage of loop variable in socks5.py
Loop seems to be checking whether on_success callback
is already called, but due to wrong variable used
it did nothing.
2018-06-22 08:05:31 +02:00
Alexander Krotov d871dcdcb1 More spelling fixes 2018-06-22 01:47:29 +03:00
Alexander Krotov 1d27ab2254 Spellcheck 2018-06-21 03:05:47 +03:00
Alexander Krotov 22d799a75e Set secure_delete pragma for SQLite3 connections
secure_delete makes SQLite3 overwrite deleted data with zeros, thus actually deleting it from the filesystem.

Ubuntu and FreeBSD enable it by defualt, but some distributions, such as Debian, have it disabled by default, so it is better to set it explicitly.

The performance impact should be negligible as Gajim uses the database rarely.
2018-06-19 19:07:16 +02:00
Philipp Hörist e20f044001 Increase timeframe for duplicate search
A too short timeframe leads to not recognizing duplicates if the server
time differs from the user time. This is only a problem with mam:1

Fixes #8750
2018-06-19 19:05:44 +02:00
Alexander Krotov 1870f560a4 Spellcheck some comments and docstrings 2018-06-19 01:56:18 +03:00
Philipp Hörist 3c1490a306 Remove forward message adhoc commands
These commands introduce security concerns because how they interact
with encrypted messages.

With MAM and Carbons installed on nearly every server these Adhoc commands
became not useful anymore
2018-06-17 23:21:29 +02:00
André Apitzsch 27bb7d1a38 Fix TypeError: get_dialog() got multiple values for argument 'name' 2018-06-17 21:15:51 +02:00
Alexander Krotov 956a420171 Fix docstrings for XEP-0146 commands 2018-06-17 20:09:32 +02:00
André Apitzsch ab3c53bf49 Remove yahoo transport
fixes #9188
2018-06-15 12:19:02 +02:00
Philipp Hörist 6492d15918 Contacts should not be added to Zeroconf account 2018-06-06 21:19:18 +02:00
Philipp Hörist 1303b89ba1 Dont request vcard more than once per session
Print a warning message if the announced avatar sha differs from the
received one

Fixes #9171
2018-06-05 23:37:10 +02:00
Philipp Hörist ce7892546c Catch error on calling setlocale()
Fixes #9167
2018-06-05 12:02:50 +02:00
Philipp Hörist 631740b66b MUC: Fix voice request
Fixes #9159
2018-06-01 20:58:09 +02:00
Philipp Hörist c5f8fe915a Disable subject change if room doesnt allow it 2018-06-01 20:02:29 +02:00
Sophie Herold 77fb424cb0 Fixes notifications are missing after refactoring 2018-06-01 18:51:29 +02:00
Philipp Hörist 4bed8ace95 Refactor Notifications
- Use icon names instead of path
- Move PopupNotificationWindow into notify.py
- Make popup class method instead of module method
- Dont use sessions to get control on notification action Fixes #9140
- Add has_focus() method to ChatControlBase
2018-06-01 17:48:05 +02:00
Philipp Hörist 2abbb1e224 Define JID type when searching for duplciates
Fixes #9163
2018-06-01 17:46:54 +02:00
Philipp Hörist a506758ed3 Remove TLEN related transport code/icons
This Messenger shut down and is not available anymore
2018-05-31 21:01:29 +02:00
Philipp Hörist d656428090 Remove MSN related transport code/icons
This Messenger shut down and is not available anymore
2018-05-31 20:29:13 +02:00
Philipp Hörist 38c669b6e1 Remove AIM related transport code/icons
This Messenger shut down and is not available anymore
2018-05-31 20:29:06 +02:00
Philipp Hörist 395d24bee6 Use certifi on MacOS
Python 3.6 does not use the MacOS cert store anymore
2018-05-31 17:35:46 +02:00
André Apitzsch 5e712768cf Add support for flatpak extensions 2018-05-29 08:34:20 +02:00
Philipp Hörist 32b74b459e Remove support for ESessions
Fixes #5294
2018-05-28 18:21:45 +02:00
Philipp Hörist 56fbe32b11 Fix zeroconf txtrecord encoding
Fixes #9146
2018-05-27 21:03:42 +02:00
Philipp Hörist dbbf078229 Determine earlier if we run as Flatpak 2018-05-27 13:45:07 +02:00
Philipp Hörist b749eccf51 Fix idle detection
Fixes #9149
2018-05-27 10:51:57 +02:00
André Apitzsch 70525c00d2 Config: use with-statement 2018-05-27 02:22:21 +02:00
lovetox 2d6e7d2eee Get rid of python-avahi 2018-05-23 11:47:13 +02:00
Philipp Hörist bc24ab470d Fix translation in flatpak build
Fixes #9138
2018-05-23 08:38:09 +02:00
Philipp Hörist d0ec9812a6 Fix Zeroconf
- Port pybonjour code from gajim_0.16 branch
- Fix some other small things that broke zeroconf
2018-05-22 23:38:04 +02:00
Philipp Hörist 7b0cbb7763 Fix detecting language 2018-05-21 21:49:19 +02:00
Philipp Hörist 2410121ddb Add dedicated zeroconf menu 2018-05-21 21:18:38 +02:00
Philipp Hörist b3162f400c Detect if we run as flatpak
Fixes #9110
2018-05-21 19:17:47 +02:00
Philipp Hörist 59cfddc3ca Fix first start with no accounts 2018-05-21 18:57:18 +02:00
Philipp Hörist 714d70cb23 Dont get current version from config 2018-05-21 18:49:06 +02:00
Philipp Hörist 0ea721fbf1 Fix log message
Presence without vcard hash is not invalid
2018-05-21 18:38:47 +02:00
Philipp Hörist 764b275394 Dont show encryption methods if not supported 2018-05-21 18:09:44 +02:00
Philipp Hörist 7040ea6b2e Move module calls into init
On Linux ctypes has not attr windll, move it into the __init__()
so it does not get evaluatet on module import
2018-05-21 02:39:29 +02:00
Philipp Hörist c5df74c509 Refactor idle module
- Get rid of sleepy.py, handle everything in idle.py
- Introduce one Monitor class that handles everything
2018-05-21 02:32:33 +02:00
Sophie Herold 2e5d966f1d Support for idle time under GNOME without X11
* Removes use of most global variables
* Adds some some logging
* Removes unused close() method for Xss
2018-05-20 20:45:46 +02:00
Philipp Hörist 3e0557dae6 Dont build menu for Local account 2018-05-20 20:15:08 +02:00
Philipp Hörist 848cdc4a88 ProfileWindow: Remove redundant menu entry 2018-05-20 01:28:12 +02:00
Philipp Hörist 2819232808 Fix AvatarChooserDialog not beeing native
Setting mimetypes forces non-native dialogs
2018-05-20 01:28:12 +02:00