Commit graph

654 commits

Author SHA1 Message Date
Alexander Bogdanov
ff9afe194e Implementing error type=modify handling for XEP-0077 2019-04-16 18:33:32 +02:00
Philipp Hörist
5f562fb0ab Iterate safely over dict
Fixes #9633
2019-04-06 09:34:50 +02:00
Philipp Hörist
72b8c0ab7f Windows: Fix version comparison
Fixes #9643
2019-04-06 09:34:31 +02:00
Philipp Hörist
80f37bb3fa Windows: Dont override format region settings 2019-04-05 21:28:46 +02:00
Philipp Hörist
cb4e60c481 Dont send invalid presence show value 2019-04-05 21:27:39 +02:00
Philipp Hörist
669671e0b2 Move imports to the top 2019-03-25 23:52:37 +01:00
Philipp Hörist
2f5d00d1f3 Refactor saving roster position
- Dont save roster position on Wayland
2019-03-25 23:46:53 +01:00
Philipp Hörist
23c08892a0 Add method to determine window manager 2019-03-25 23:30:10 +01:00
Philipp Hörist
7ba9bc4b04 Dont leak DNS query if we connect via proxy
Fixes #9573
2019-03-16 16:19:11 +01:00
Philipp Hörist
c0178db779 Redirect some print statments to stderr
Otherwise they errors will not show up if the console output is
redirected to a file
2019-03-02 10:52:30 +01:00
Philipp Hörist
c5d2f8bdab Use pathlib replace() for saving config
This makes it hopefully more resilient on Windows
2019-03-02 10:47:34 +01:00
Philipp Hörist
f4b4e9cc88 Determine windows version reliably
Fixes #9578
2019-02-15 16:56:52 +01:00
Philipp Hörist
064f249c5a Add mobile phone indicator
Shows a mobile phone icon if the last message was received by a client
which identifies as phone
2019-02-15 16:45:58 +01:00
Philipp Hörist
a1d68677d0 Dont fail on urn:xmpp:hashes:1
Fixes #9514
2019-02-15 16:35:57 +01:00
Philipp Hörist
05f1c78098 XTLS: Fix endless loop on write error 2019-02-15 16:35:56 +01:00
Philipp Hörist
9419e8ddf7 Fix deprecation warning
set_cipher_list wants bytes
2019-02-15 16:35:44 +01:00
Philipp Hörist
14fb085766 Windows: Fix language detection 2019-01-19 19:58:15 +01:00
streaps
caf95ead3b Jingle Audio: Update codecs
Fixes #9535
2019-01-10 22:34:08 +01:00
Philipp Hörist
ad5a8fd390 Pass xml:lang to nbxmpp 2019-01-08 20:21:47 +01:00
Philipp Hörist
2ad179df77 Better determine language cross platform 2019-01-08 20:20:12 +01:00
Sebastiaan Lokhorst
5329190d9c Fix Bonjour (pybonjour) on macOS 2019-01-08 20:18:47 +01:00
Philipp Hörist
d1bad01256 Add chatstates module to zeroconf
Fixes #9503
2018-12-23 14:08:07 +01:00
Philipp Hörist
f93797e26d Send active instead of gone as last chatstate
- Also attempt to fix #9446
2018-12-22 13:53:50 +01:00
Philipp Hörist
6ed2094b67 Add more log output when calling handlers 2018-12-22 13:53:33 +01:00
Philipp Hörist
d7bc92706d Allow handlers list to be modifed while iterating 2018-12-18 15:15:33 +01:00
Philipp Hörist
2a8d5739d3 MUC: Identify subject change correctly
Fixes #9491
2018-12-09 21:24:56 +01:00
Philipp Hörist
1c09b50791 Use custom dict for additional data
This makes it easier to retrive and store values
2018-12-07 23:31:00 +01:00
Philipp Hörist
b4f43acbc8 Encode resource with correct profile
Fixes #9465
2018-12-06 20:52:51 +01:00
Philipp Hörist
6c2df54132 Determine delay timestamp correctly
- Check the from attr on the delay node to determine if its a user timestamp or from the server
- Dont use user timestamp for sorting
- Record the user timestamp in additional data so its saved to the database

Fixes #9444
2018-12-06 20:52:30 +01:00
Philipp Hörist
59147efaff Fix pylint errors 2018-12-05 21:43:21 +01:00
Philipp Hörist
bbc038ec46 Handle presence without from attr correctly
Fixes #9472
2018-12-03 15:46:20 +01:00
Philipp Hörist
f8047c63fe Fix error when creating MUC
Fixes #9473
2018-12-03 15:46:12 +01:00
Philipp Hörist
5b9c564faf Better handle not available keyring backends 2018-12-03 15:46:00 +01:00
Andrey Gursky
1b5272c854 Fix receipts for chat
This is a regression from e3050697
2018-12-03 15:44:48 +01:00
Philipp Hörist
193092d0a2 Fix receipts for MUC-PMs 2018-11-19 20:07:38 +01:00
Philipp Hörist
9c99af4f16 Dont check mam:2 compliance for error messages 2018-11-19 20:07:38 +01:00
Philipp Hörist
567b871b6a Dont answer groupchat receipt requests 2018-11-19 20:07:38 +01:00
Philipp Hörist
9bf88c1f65 Improve Entity Time parsing
- Use parse_datetime()
- Improve tzo node validation
2018-11-19 20:06:40 +01:00
Philipp Hörist
00c7715c01 Refactor parse_datetime and add unit test 2018-11-19 20:06:31 +01:00
Philipp Hörist
adfcfb1bc4 Fix incorrect contact status on tabs 2018-11-16 15:28:28 +01:00
Philipp Hörist
2c2943deff Determine absolut path for custom config folder
When a relative custom config path is passed via commandline, the logic
which decides if a plugin can be deleted from the plugin manager fails
2018-11-13 21:56:21 +01:00
Philipp Hörist
5981396ac4 Pass account to plugins when encrypting a file 2018-11-13 21:56:21 +01:00
Philipp Hörist
57dad43d09 Dont test for sys.platform == 'linux'
This excludes other unix systems which was not intended
2018-11-13 21:56:21 +01:00
Philipp Hörist
08bde952b9 Dont test if precis_i18n is available
Its listed as dependency
2018-11-13 21:56:20 +01:00
Philipp Hörist
584c9ff695 Move imports into function 2018-11-13 21:56:20 +01:00
Philipp Hörist
67786dfd84 Try to play sound on all unix systems
sys.platform == 'linux' excludeds other unix systems, for example FreeBSD
2018-11-13 21:56:20 +01:00
Philipp Hörist
959a51c5f5 Dont test if winsound is available
Its a standard library which will be always available in our builds
2018-11-13 21:56:20 +01:00
Philipp Hörist
8061146d4f Remove unused code
Code is also not cross-platform compatible
2018-11-13 21:56:20 +01:00
Philipp Hörist
298fb15306 Better determine soundplayer on unix systems
- sys.platform == 'linux', excludes many other unix systems
- use shutil.which() to test if a command is available
2018-11-13 21:56:20 +01:00
Philipp Hörist
7730bc0e37 Cast messages from a bare muc jid to groupchat 2018-11-05 21:11:39 +01:00