Commit Graph

960 Commits

Author SHA1 Message Date
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