Commit Graph

1178 Commits

Author SHA1 Message Date
Philipp Hörist b99632ab03 Fix pylint errors 2018-09-12 00:01:54 +02:00
Philipp Hörist 09c5183575 Fix pylint errors in common/modules 2018-09-11 22:25:55 +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 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
Philipp Hörist be96422a14 Disco the room after it has been created 2018-09-01 00:03:24 +02:00
Philipp Hörist 527762f726 Fix missing attribute 2018-08-31 06:37:53 +02:00
Sophie Herold 7743c11a50 Unify to use app.get_account_label() 2018-08-30 19:27:40 +02:00
Philipp Hörist dd8dda9b32 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-08-30 19:19:47 +02:00
Philipp Hörist 8a34261137 Parse delay after decryption
Delay could be encrypted with full stanza encryption
2018-08-30 19:19:47 +02:00
Yann Leboulanger 08d0cde95d improve string for translators 2018-08-30 14:57:33 +02:00
Yann Leboulanger 7d4a9b91c8 better fix for joining groupchats with uppercase letters. Fixes #9198 2018-08-30 12:21:43 +02:00
Philipp Hörist 931e3f60ba Register modules defined by plugins 2018-08-28 23:03:00 +02:00
Sophie Herold 3c492e92da Show avatar in new message notifications 2018-08-28 22:33:12 +02:00
Philipp Hörist d57bfcbcad ServerInfo: Fix empty version result
Fixes #9311
2018-08-26 10:39:29 +02:00
Philipp Hörist e665ee1fbe Fix MUC invite notification
Fixes #9309
2018-08-24 22:03:33 +02:00
Philipp Hörist a087486e45 Windows: Fix gstreamer/farstream plugin paths 2018-08-21 19:21:07 +02:00
Philipp Hörist fb4c5a2351 Call link() on correct object 2018-08-21 18:48:20 +02:00
Philipp Hörist fef8cff254 Display only emojis the font supports
Fixes #9299
2018-08-20 19:18:07 +02:00
Philipp Hörist 2a4e59654f HistoryManager: Convert RGB to hex 2018-08-19 23:48:44 +02:00
André Apitzsch 5d853e902a Time: use classes from standard library 2018-08-19 23:29:05 +02:00
Philipp Hörist e128a3f676 Fix emoji theme fallback 2018-08-19 21:38:11 +02:00
Philipp Hörist 8ab607629b Update Gajim version to 1.0.99 2018-08-19 18:08:00 +02:00
Philipp Hörist 1c69b92d85 Move filechoosers into gtk module 2018-08-19 17:47:17 +02:00
Philipp Hörist f3dd55de3e Add reason to MUC service-error kick 2018-08-19 17:02:10 +02:00
Philipp Hörist 9e3e6f80bb Add JID to VcardReceivedEvent 2018-08-19 16:43:59 +02:00
Philipp Hörist 854f8512a4 Remove not used liststore entrys 2018-08-19 13:51:06 +02:00
Philipp Hörist 732ed0a162 Fix theming option names 2018-08-19 12:15:07 +02:00
Philipp Hörist c4dfc0f8f2 Caps: Lower log level 2018-08-19 10:50:51 +02:00
Philipp Hörist b37a42c37b Raise min nbxmpp version to 0.6.7 2018-08-19 10:50:51 +02:00
Alexei Sorokin 036c867902 Support notification daemons with no actions once again 2018-08-19 10:38:22 +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 dfb7b4a0dd Simplify removing events on scroll to bottom 2018-08-18 15:56:23 +02:00
Philipp Hörist bd8486f822 Fix arguments in method call 2018-08-18 15:52:12 +02:00
Philipp Hörist 1a2246947f Fix removing events when scrolled to bottom 2018-08-18 15:46:51 +02:00
Yann Leboulanger c6dbf775fa make a string not translatable 2018-08-18 14:39:32 +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 1bb04ca402 Dont use hide() after show_all()
rather use no_show_all. This reduces flickering when we show the window
2018-08-18 00:48:12 +02:00
Philipp Hörist 042d8aa687 Fix deprecation warning
only keyword args should be used
2018-08-18 00:13:51 +02:00
Philipp Hörist 7392883607 Fix deprecation warning 2018-08-18 00:10:10 +02:00
André Apitzsch 36efb61acc Remote control: fix some errors 2018-08-17 22:06:02 +02:00
André Apitzsch f5a52c52b0 Remote control: remove undefined variable 2018-08-17 22:06:02 +02:00
André Apitzsch 7447f33c5e Port remote control to GDBus 2018-08-17 22:06:02 +02:00
Philipp Hörist d97c726a9f Add twitter emojis 2018-08-17 21:55:49 +02:00
Philipp Hörist 1577bcba5a Move the noto atlas generator code into a new project 2018-08-17 21:55:48 +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 e37ab6b59a Fix typo 2018-08-17 09:37:43 +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 f699df9bd6 Dont use dict to keep track of window instances
GtkApplication maintains a store for all active ApplicationWindows,
we dont need to replicate that.
2018-08-16 20:47:54 +02:00
Philipp Hörist 71586e01d2 Escape groupchat name in tab label 2018-08-12 00:06:22 +02:00
Philipp Hörist f438a27ab8 Handle new MUC status code 333 2018-08-08 21:51:23 +02:00
Sophie Herold aa5fca866b Align vcard dialog labels with profile dialog 2018-08-08 19:59:47 +02:00
Philipp Hörist c332ad6a67 Fix string 2018-08-06 20:24:09 +02:00
Philipp Hörist c778ed6917 Move Preferences into own module
- Port Preferences to Gtk.ApplicationWindow
2018-08-06 19:48:49 +02:00
Sophie Herold 42adff1b1b Rework Preferences Dialog 2018-08-06 19:48:49 +02:00
Sophie Herold 835bffd893 Fix broken history search 2018-08-06 19:07:42 +02:00
Philipp Hörist 94b2d1e577 Fix passing too many args 2018-08-06 18:25:52 +02:00
Philipp Hörist 2e53f47da8 Fix GtkBuilder translation
Fixes #9277
2018-08-06 17:14:07 +02:00
Philipp Hörist 2fd7187d16 Use new DataFormWidget with ServiceRegistration 2018-08-05 22:51:09 +02:00
Philipp Hörist f90b9a6b3a Add new DataFormWidget 2018-08-05 22:51:03 +02:00
Philipp Hörist 621d667f4c Remove unused FeatureNegotiationWindow 2018-08-05 22:51:03 +02:00
Philipp Hörist 2ce78334ca Fix direct MUC invite 2018-08-04 21:41:44 +02:00
Philipp Hörist 92af78f103 Move history window into gtk folder
- fix some pep8 warnings
2018-08-04 20:14:28 +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
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 4096ab5db5 Fix detecting oob data 2018-07-31 21:20:02 +02:00
Philipp Hörist 85bc3896ab Handle messages without 'to' correctly 2018-07-30 21:58:22 +02:00
Philipp Hörist 23e39dc9e6 Move shortcuts dialog into gtk folder 2018-07-30 00:24:43 +02:00
Philipp Hörist a7d9701c18 Move AccountCreationWizard into gtk folder 2018-07-30 00:20:38 +02:00
Philipp Hörist b3f1416c24 Move features dialog into gtk folder 2018-07-29 23:58:38 +02:00
Philipp Hörist 137bf1f831 MAM: Request from last received stanza-id
Record stanza-ids from live messages. If Gajim is started query the
archive from the last received stanza-id
2018-07-29 23:16:13 +02:00
Philipp Hörist dbf891e97c Add missing bookmark dict entry 2018-07-29 22:26:52 +02:00
Philipp Hörist 394d38e663 Add lost server discovery query 2018-07-29 22:16:06 +02:00
Philipp Hörist 80aee95f2e Reset connect_maschine after disconnect on purpose 2018-07-29 19:35:45 +02:00
Philipp Hörist 68bd3abbce Fix creating metacontacts
- We call finish() in on_drop_in_group() and on_drop_in_contact(),
so dont do it in drag_drop()
- Fix singal names
2018-07-29 16:23:30 +02:00
Philipp Hörist 4686bcb8ca Dont idle draw avatars and pep images
The model is detached from the treeview at start, so put all
avatars into the model before we attach it again.

Only draw PEP images when we receiv them. We dont save them to the
database so it makes no sense to try and draw them on start.
2018-07-29 12:16:41 +02:00
Philipp Hörist 7584037fc7 Fix typo 2018-07-28 13:32:37 +02:00
Philipp Hörist b913d2745b Improve speed of loading roster 2018-07-28 13:23:49 +02:00
Philipp Hörist 2f3d50b13f Fix restoring open chatcontrols after restart 2018-07-27 16:16:23 +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 7ad6a28e12 Fix event name 2018-07-26 17:27:56 +02:00
Philipp Hörist 313b913ae4 Dont get own avatar_sha from contacts 2018-07-25 23:17:12 +02:00
Philipp Hörist cf580c62de Discover httpupload also on the user domain 2018-07-25 19:33:03 +02:00
Philipp Hörist 5d24c9bbdd Move subscription code into presence module 2018-07-23 23:04:07 +02:00
Philipp Hörist 6c4d9ff4c7 Dont disco unnecessary server items 2018-07-23 20:44:57 +02:00
Philipp Hörist ea34959b35 Catch cert error in posh query 2018-07-23 19:51:25 +02:00
Philipp Hörist a943a35a5d Move caps code into own module 2018-07-22 20:49:53 +02:00
Philipp Hörist 78e4e20d49 Move ProfileWindow into gtk module 2018-07-22 16:53:02 +02:00
Philipp Hörist 8c299c0b77 Remove unused imports 2018-07-22 16:46:37 +02:00
Philipp Hörist 8ed3952572 Move ManageBookmarksWindow into gtk module 2018-07-22 16:43:42 +02:00
Philipp Hörist cd9ffc7ebf Move ManagePEPServicesWindow into gtk module 2018-07-22 16:34:51 +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 5ff9e9febf Move dataforms into modules folder 2018-07-22 16:20:00 +02:00
Philipp Hörist 1156897b5d Show Security Labels support in ServerInfo 2018-07-22 16:19:59 +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 37f7a80396 Move message handler into own module 2018-07-22 12:33:55 +02:00
Philipp Hörist d4fd621d11 Use misc module to parse correction 2018-07-21 08:50:46 +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 54b5dec6c7 Mock bookmarks for zeroconf
Fixes #9256
2018-07-20 23:17:58 +02:00
Philipp Hörist 5ed9768b87 Add JID to log output 2018-07-19 17:15:28 +02:00
Philipp Hörist 3a3b5aff20 Move some dialogs into gtk module 2018-07-18 00:15:46 +02:00
Philipp Hörist bff5f14b92 Move invites into MUC module 2018-07-17 18:38:36 +02:00
Philipp Hörist d65253b021 Move Carbons into own module 2018-07-17 18:38:36 +02:00
Philipp Hörist 6c70b63e34 Fix parsing jid from roster set event 2018-07-17 00:13:12 +02:00
Sophie Herold f89169517e Rework Plugins Dialog 2018-07-16 22:38:08 +02:00
Sophie Herold 67d9b7a7ea Rework Bookmarks Dialog 2018-07-16 19:44:38 +02:00
Philipp Hörist 8fbafcd8fb Register mam handler correctly 2018-07-15 23:58:21 +02:00
Philipp Hörist dd664643bd Move History Sync Dialog into gtk module 2018-07-15 14:32:08 +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 72ee9af79c Set lower log level for password errors 2018-07-14 08:21:43 +02:00
Philipp Hörist 28aada122d Fix it better 2018-07-13 18:09:48 +02:00
Philipp Hörist 45635736bf Fix error if session is None 2018-07-13 18:06:31 +02:00
Philipp Hörist c225ae70e4 Add debug logging for saving roster position 2018-07-12 23:19:22 +02:00
Philipp Hörist 4cb852914e Fix bookmarks strategy
Strategy is now:

1. Get pubsub if supported
2. Get private storage and merge if we find boomarks we dont have
3. Store bookmarks to both pubsub and privatestorage

The only drawback with this strategy is, that a client that supports
only private storage cant delete bookmarks
2018-07-12 21:34:15 +02:00
Ave O c3a359ba23
Change to gender-neutral alternatives of pronouns 2018-07-11 23:15:56 +03:00
Philipp Hörist aaab5f17ce Remove whitespace char from groupchat label 2018-07-11 19:04:09 +02:00
Sophie Herold 6d96005d55 Disable recently button if popover is empty 2018-07-10 18:08:11 +02:00
Sophie Herold a506226d88 Add paste from clipboard in JoinGroupchat dialog
Closes #9237
2018-07-10 18:01:50 +02:00
Philipp Hörist d9eb3e6891 Blocking: Raise NodeProcessed 2018-07-09 23:37:13 +02:00
Philipp Hörist eb1b6f605a Dump certificate before writing it to storage 2018-07-09 20:15:13 +02:00
Philipp Hörist 828d74570a Remove print statement 2018-07-09 19:52:57 +02:00
André Apitzsch dbb4c5318c Filetransfer UI: remove deprecated properties 2018-07-08 22:48:28 +02:00
Philipp Hörist c25a4a0aab Fallback to account name when label is missing
Fixes #9236
2018-07-08 21:28:02 +02:00
Sophie Herold 0750d6f6ef Fixes account box with one account is shown 2018-07-08 19:50:49 +02:00
Philipp Hörist 3438b06069 Fix JoinGroupchat hotkey if zeroconf is active 2018-07-08 19:50:27 +02:00
Philipp Hörist a2d7283e6e Refactor AdHocCommands into own module 2018-07-08 19:39:57 +02:00
Philipp Hörist 78d16c44f3 Register PEP module first
Other modules depend on it
2018-07-08 17:06:12 +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 3a6f667008 Check if we have a nbxmpp Client object
In some cases the XMPPDispatcher which handles the callbacks is not
yet created.
2018-07-07 20:01:47 +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 af7ac9211d Fix pylint errors in dataforms module 2018-07-07 19:36:24 +02:00
Philipp Hörist ff2fab73a1 Parse input sent via XMLConsole
This allows us to show the user an error if the stanza is invalid.
Until now the server would instantly disconnect us.

Also this fixes the problem that XMLConsole input was not counted for
streammanagement.

Fixes #8563
2018-07-07 19:20:28 +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 3a3b32249c Fix requesting pubsub node config
Regression from refactoring
2018-07-07 01:49:50 +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
Sophie Herold 0eeb111a02 Rework Add Contact Dialog 2018-07-07 00:46:23 +02:00
Philipp Hörist 1e9fb205ee Fix regression from 8b800f46 2018-07-06 23:54:29 +02:00
Philipp Hörist a5b17a87a9 Pass account when clicking on xmpp:?join link 2018-07-06 22:17:05 +02:00
Sophie Herold 4fa4484dfd Rework JoinGroupchat Dialog 2018-07-06 22:14:32 +02:00
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