Commit Graph

3502 Commits

Author SHA1 Message Date
Daniel Gultsch 64dd622d32 make 'markable' attribute persistent 2017-11-25 20:55:43 +01:00
Daniel Gultsch 7f4f30c849 ListItemAdapter: use ViewHolder 2017-11-23 23:26:19 +01:00
Daniel Gultsch d95ff134d9 pulled translations from transifex 2017-11-23 21:00:49 +01:00
Daniel Gultsch 9381c1d3e2 fixed content description for previous ViewHolder refactor 2017-11-23 20:32:51 +01:00
Daniel Gultsch 333e7a6510 deduplicate read markers if one with real jid is found 2017-11-23 18:19:05 +01:00
Daniel Gultsch 513427c8a8 MAM: start muc catchup with last sent message if serverId is available 2017-11-23 18:18:30 +01:00
Daniel Gultsch 7d04e6331a ConversationAdapter: use view holder 2017-11-23 09:59:49 +01:00
Daniel Gultsch 900ad2f7ef ConversationsAdapter: Use EmojiWrapper instead of EmojiTextView 2017-11-23 09:36:51 +01:00
Daniel Gultsch d7c5937c20 process emoji charsequence instead of using EmojiTextView 2017-11-22 21:17:38 +01:00
Daniel Gultsch 03c34649b4 shorten >4 names to a, b, c +n more 2017-11-22 17:57:28 +01:00
Daniel Gultsch 8696cf2235 PgpService: feed result intent back into decryption 2017-11-22 13:36:10 +01:00
Daniel Gultsch 4596cad3cb MessageParser: don't refresh view after parsing chat state when combined with message 2017-11-21 16:17:27 +01:00
Daniel Gultsch 381fe82b01 save full jid when sending in muc. check chat markers against 'sender' 2017-11-21 15:42:46 +01:00
Daniel Gultsch 79ea0713bb MessageAdapter: code reformat 2017-11-21 13:26:45 +01:00
Daniel Gultsch 702d6cf2a5 MessageParser: dismiss notification when receiving read marker from another client 2017-11-21 13:26:23 +01:00
Daniel Gultsch 05b6fdb9f1 use empty wake lock tag 2017-11-21 13:25:18 +01:00
Daniel Gultsch 52e09d17e8 MessageAdapter: do not apply empty size spans 2017-11-21 12:41:05 +01:00
Daniel Gultsch 9548a4f6af ConversationAdapter: do not show file icon when file has been deleted 2017-11-21 12:40:42 +01:00
Daniel Gultsch 28e005f926 send and show read markers in private, non-anonymous groups 2017-11-20 11:26:20 +01:00
Daniel Gultsch 1c65a17ff1 pulled translations from transifex 2017-11-20 11:16:34 +01:00
Daniel Gultsch 1780a4257f ConversationsAdapter: code cleanup 2017-11-20 11:12:11 +01:00
Daniel Gultsch 47adc9cdcf pulled translations from transifex 2017-11-18 11:26:22 +01:00
Daniel Gultsch e452d5d46d stop scrolling before changing conversations. fixes #2700 2017-11-17 21:00:01 +01:00
Daniel Gultsch 5e15c48206 refactore phone helper to ignore security exception 2017-11-17 10:28:51 +01:00
licaon-kter 1cc8a446f0
Fix typo 2017-11-16 17:02:14 +02:00
Daniel Gultsch 013822fe82 excute db read and writes on different threads 2017-11-16 15:53:03 +01:00
Daniel Gultsch 3dbe5db44b Rename 'conference' to 'group chat' 2017-11-16 13:30:27 +01:00
Daniel Gultsch 2d42646893 JingleConnection: fixed rare npe when canceling jingle 2017-11-16 12:49:15 +01:00
Daniel Gultsch c52492ada0 apperently some servers will ommit the from even for stanzas not going to them 2017-11-16 12:48:26 +01:00
Daniel Gultsch 75a485cbc1 catch all sorts of date parsing errors 2017-11-16 12:47:49 +01:00
Daniel Gultsch 8e4440a49a fixed ImStyleParser to not style '**test**' 2017-11-14 17:57:22 +01:00
Daniel Gultsch 3efa1c46ab remove numeric hint from captcha 2017-11-14 09:14:03 +01:00
Daniel Gultsch fced4a454e ConversationsAdapter: Do not show attachment icon + text if attachment is audio or location 2017-11-13 18:37:12 +01:00
Daniel Gultsch 8e4df80619 Merge branch 'patch-1' of https://github.com/Kandr0s/Conversations into Kandr0s-patch-1 2017-11-13 14:51:56 +01:00
Daniel Gultsch 3faf951f47 disable swipe to left to dismiss conversation 2017-11-13 14:51:45 +01:00
Kandr0s 308f451959 Show Drawable if Location/File/Voice 2017-11-13 13:39:06 +01:00
Daniel Gultsch 7c55d78b0a set attach icons in dark theme to 70% alpha 2017-11-12 19:23:33 +01:00
Daniel Gultsch bc9da1fbf4 remove prosody push from blacklist 2017-11-12 19:22:39 +01:00
Daniel Gultsch 49365511e4 trying to catch various dead system exception when scheduling new alarms and such 2017-11-12 19:22:07 +01:00
Daniel Gultsch 7e93f4519a catch all RuntimeExceptions when using MetadataRetriever 2017-11-12 19:20:35 +01:00
Daniel Gultsch a6d1559755 styler: ignore closing keyword when preceded by whitespace 2017-11-10 20:19:22 +01:00
Daniel Gultsch 513795fdf8 use view context instead activity to show toast in ConversationFragment 2017-11-10 20:18:47 +01:00
Daniel Gultsch d6eb08e0ed catch rare exception when transforming download uri to real path 2017-11-10 20:18:09 +01:00
Daniel Gultsch f4638d7eec catch some more exception when retrieving media runtime 2017-11-10 20:17:42 +01:00
Daniel Gultsch 949d3280d3 open links in new tabs 2017-11-09 20:49:44 +01:00
Daniel Gultsch a5c33abe88 MessageAdapter: code cleanup 2017-11-09 20:23:31 +01:00
Daniel Gultsch 459cf09f06 FileProvider: attempt to work with sd cards 2017-11-08 20:34:08 +01:00
Daniel Gultsch 0e12b2d19a AndroidManifest: revert ManageAccount activity to single task 2017-11-08 20:33:48 +01:00
Daniel Gultsch 676f181cad lower priority for error notification 2017-11-08 20:33:05 +01:00
Daniel Gultsch e393de6832 disable auto fill on edit message box 2017-11-08 13:25:38 +01:00
Daniel Gultsch de46192a8d pulled translations from transifex 2017-11-08 13:25:13 +01:00
Daniel Gultsch e9587f73ce styling: introduce support for code blocks 2017-11-07 23:28:14 +01:00
Daniel Gultsch 2e3b5de6b6 do not quote quotes 2017-11-07 22:22:28 +01:00
Daniel Gultsch e5210bbaa0 brought back 'copy to clipboard' and 'quote' context menu options 2017-11-07 15:58:27 +01:00
Daniel Gultsch 49b4153fb5 make keyword styling work in quotes 2017-11-07 13:23:49 +01:00
Daniel Gultsch 22c37bd430 changed text styling to keep the keyword 2017-11-06 23:44:00 +01:00
Daniel Gultsch a2b940832e pulled translations from transifex 2017-11-06 20:17:37 +01:00
Daniel Gultsch af3c9be700 fix take photo with pending keys 2017-11-06 17:27:48 +01:00
Daniel Gultsch 894ffc6488 ExceptionHelper: code clean up 2017-11-06 14:20:58 +01:00
Daniel Gultsch aa10b9ff05 code refactoring to provide shorter account enabled check 2017-11-06 13:57:25 +01:00
Daniel Gultsch fd7ee7c025 AndroidManifest use singleTop instead of singleTask to start new task when sharing 2017-11-06 12:18:24 +01:00
Daniel Gultsch ebd3330037 changed preview alpha to 0.6f 2017-11-06 12:17:43 +01:00
Daniel Gultsch 4d896cc3ab initialize emoji compat in share activity 2017-11-06 12:16:55 +01:00
Daniel Gultsch c262cd5d6e support for basic IM styling 2017-11-05 21:34:40 +01:00
Daniel Gultsch 7984100e54 delete unneeded class 2017-11-05 16:32:57 +01:00
Daniel Gultsch 435d1ef5bd SASL: don't prefer PLAIN auth over DIGEST-MD5 for nimbuzz.com 2017-11-05 16:21:59 +01:00
Daniel Gultsch 8f0cd86090 Resync has_enabled_account setting after delete and on start 2017-10-28 17:49:51 +02:00
Daniel Gultsch 3205d763cf MessageAdapter: Display emojis slightly larger in text 2017-10-28 13:15:31 +02:00
Daniel Gultsch aeec76d68b Resolver: active network gets high priority 2017-10-28 13:12:11 +02:00
Daniel Gultsch 4d0986ee91 Resolver: Only prefer VPN connections when network is active 2017-10-27 21:57:31 +02:00
Daniel Gultsch 962add97f9 XmppConnection: throw bind failure when server tries to reassign domain 2017-10-27 18:26:06 +02:00
Daniel Gultsch 82e5a28f49 Sharing: request permission 2017-10-27 17:25:01 +02:00
Daniel Gultsch 08aad7d0aa black list certain local parts and show domain instead 2017-10-27 15:46:12 +02:00
Daniel Gultsch 3c2aa8a4d2 Config.java: removed dead code 2017-10-27 15:30:08 +02:00
Daniel Gultsch 6f802b88d2 XmppConnection: do not count stanzas before smacks session has started 2017-10-27 11:35:55 +02:00
Daniel Gultsch dc5d504edd MessageAdapter: round file sizes 2017-10-27 11:35:19 +02:00
Daniel Gultsch ad6f6183b8 video processing: pick smaller file after transcoding. do not transcode very small files 2017-10-27 11:34:53 +02:00
Daniel Gultsch 396ad3361f Jingle: create output stream on demand 2017-10-26 18:42:10 +02:00
Daniel Gultsch 73db0bd19f MessageAdapter: Do not display muc whispers as emoji only 2017-10-26 18:41:40 +02:00
Daniel Gultsch 6bc32d7e57 pulled translations from transifex 2017-10-23 21:14:23 +02:00
Daniel Gultsch ac50b367b7 don't share video twice after transcoding exception. fixes #2652 2017-10-14 02:38:05 +02:00
Daniel Gultsch 48baf56622 save message drafts across restarts. fixes #2642 2017-10-01 22:52:21 +02:00
Daniel Gultsch 50d436fd81 EventReceiver: use setting to store enabled accounts 2017-10-01 18:44:28 +02:00
Daniel Gultsch a288ad8d6b Merge branch 'master' of github.com:siacs/Conversations 2017-10-01 10:42:24 +02:00
Daniel Gultsch 874c1f4c74 MessageAdapter: trim but don't replace all whitespaces before displaying emoji message 2017-10-01 10:42:01 +02:00
Daniel Gultsch a16aca03f8 Merge pull request #2643 from devurandom/patch-1
Fix typo in error_no_keys_to_trust_server_error
2017-09-30 20:03:39 +02:00
Daniel Gultsch 6713431986 Emoticons: support subdivision-flags 2017-09-30 18:58:35 +02:00
Daniel Gultsch 39a54838fa Emoticons: detect keycaps 2017-09-30 17:38:48 +02:00
Dennis Schridde 87b1cc6b38 Fix typo in error_no_keys_to_trust_server_error
Contact should be genitive (contact's), not plural (contacts)
2017-09-30 16:30:12 +02:00
Daniel Gultsch bbfabaf930 FileBackend: close cursor after retrieving file size 2017-09-30 15:50:01 +02:00
Daniel Gultsch 014052b991 added a few codepoints with emoji variants 2017-09-30 01:18:08 +02:00
Daniel Gultsch f53e44a291 refactor emoji detector and fix fitzpatrick followed by zwj 2017-09-29 23:27:08 +02:00
Daniel Gultsch f0e48c8af5 use own algorithm to count emoji instead of using emoji-java 2017-09-29 22:56:17 +02:00
Daniel Gultsch 42b4528d03 use emoji compat 2017-09-29 19:44:30 +02:00
Daniel Gultsch bb10cef505 pulled translations from transifex 2017-09-27 10:52:53 +02:00
Daniel Gultsch 9b4149a63d limit audio player width on small screens 2017-09-27 10:21:34 +02:00
Daniel Gultsch acd4b149f5 slight refactoring in MessageAdapter 2017-09-27 10:21:00 +02:00
Daniel Gultsch 129b84bda8 add maintanence intent to renewe instance id 2017-09-22 13:31:00 +02:00
Daniel Gultsch b292a6bbd4 pulled translations from transifex 2017-09-22 13:28:13 +02:00
Daniel Gultsch c3dcc74b23 select presence if necessary when resending file 2017-09-22 11:14:56 +02:00
Daniel Gultsch a3be1e964c execute video compression on seperate thread 2017-09-21 21:54:10 +02:00
Daniel Gultsch e5becc2e12 slightly refactor dns resolver 2017-09-21 21:46:11 +02:00
Daniel Gultsch 881d4ad5b7 give exec resolver a lower priority over reflection. fixes #2629 2017-09-21 10:31:21 +02:00
Daniel Gultsch 2eb7197e04 removed unnecessary padding restrictions around emoji messages 2017-09-20 21:04:41 +02:00
Daniel Gultsch 20b14091d6 play audio files inline 2017-09-20 15:35:35 +02:00
Daniel Gultsch 30b6201b95 reworked file params to store audio runtime amoung other things 2017-09-19 22:42:22 +02:00
Daniel Gultsch 9733003d0f removed duplicate code from message bubble layouts 2017-09-19 19:02:35 +02:00
Daniel Gultsch acc78145db unified share with menu. fixes #2630 2017-09-19 16:28:01 +02:00
Daniel Gultsch dbd489cbcb show correct tooltip when long pressing start conversations. fixes #2635 2017-09-19 10:43:25 +02:00
Daniel Gultsch 4e864935fe ignore http upload file size constraints for videos that will be compressed 2017-09-18 22:42:25 +02:00
Daniel Gultsch 66dd4dc654 pulled translations from transifex 2017-09-18 18:26:53 +02:00
Daniel Gultsch 0603378c75 show permanent notification while transcoding video 2017-09-18 17:56:25 +02:00
Daniel Gultsch 17e70f55a0 made video thumbnail available during upload 2017-09-18 12:31:57 +02:00
Daniel Gultsch c2105dfe46 use lower resolution for videos longer than 8s 2017-09-18 11:54:14 +02:00
Daniel Gultsch d4c16b5a85 added dedicated 'record video' attachment button. fixes #2592
thank you @BlauerHunger
2017-09-18 11:51:47 +02:00
Daniel Gultsch 22a058ff61 show block menu after long press on allow/add back 2017-09-11 09:53:14 +02:00
Daniel Gultsch 63817ecda1 removed unused 'disable foreground' button 2017-09-11 09:27:39 +02:00
Daniel Gultsch 32b1e5b306 additional null checks around 'read by' intent 2017-09-11 09:23:14 +02:00
Daniel Gultsch 0663e04e0a pulled translations from transifex 2017-09-10 17:19:42 +02:00
licaon-kter 200fda141b Cleanup some unused strings 2017-09-09 18:58:21 +03:00
Daniel Gultsch 5cc92acbee use 'partial' in server info if publish-options is n/a
fixes #2621
2017-09-09 13:34:51 +02:00
Daniel Gultsch f824b23ca6 pulled translations from transifex 2017-09-06 08:38:29 +02:00
Daniel Gultsch 57ca77aa0c (re)enable message correction by default 2017-09-06 08:38:14 +02:00
Daniel Gultsch 8126bc98b4 Merge branch 'master' of https://github.com/invisiblek/Conversations into invisiblek-master 2017-08-31 12:43:34 +02:00
Dan Pasanen bbce690d4f NotificationService: add button to mark conversation as read 2017-08-30 11:15:03 -05:00
Daniel Gultsch 0f39ad0f04 make filtered list item activity survive roations 2017-08-28 18:30:39 +02:00
Daniel Gultsch ccb47c5727 get rid of uneccessary 'own omemo fingerprint' string. fixes #2599 2017-08-28 18:15:39 +02:00
Daniel Gultsch d4c8f0191c pulled translations from transifex 2017-08-24 10:09:23 +02:00
Daniel Gultsch 617425e7ff link jid in trust keys activity to contact details 2017-08-24 10:09:16 +02:00
Daniel Gultsch f4ff644338 reintroduced fixed IV mode for OTR file transfer. fixes #2595 2017-08-23 22:37:13 +02:00
Daniel Gultsch e6a67a6c26 made avatar cache cleaning more efficent after name changes 2017-08-23 21:49:25 +02:00
Daniel Gultsch d348780dfc wait up to 2s to let server close socket before force closing 2017-08-23 12:33:40 +02:00
Daniel Gultsch 94e0c6b38c don’t use xmpp or jabber as default muc nick 2017-08-23 10:06:32 +02:00
Daniel Gultsch 26f7702c39 request storage permission when sending gif. fixes #2589 2017-08-22 16:51:42 +02:00
Daniel Gultsch 85b502cff9 use proper defaults for notification. fix sound playing twice on Android 8 2017-08-22 12:19:18 +02:00
Daniel Gultsch debbaa8be2 pulled translations from transifex 2017-08-22 11:28:13 +02:00
Daniel Gultsch 6777ecdb00 set status=received on status messages 2017-08-21 16:19:35 +02:00
Daniel Gultsch e0fa820436 improved error messages on missing omemo keys 2017-08-21 14:08:20 +02:00
Daniel Gultsch 6afa5653cb fixed jingle state machine being thrown off by iq-result coming after session-accept
fixes #2587
2017-08-18 14:33:56 +02:00
Daniel Gultsch 1383d3d2e4 fixed regression that set the autojoin default to false 2017-08-18 13:43:24 +02:00
Daniel Gultsch dd5e321247 fixed conference naming for joined people not in your contact list 2017-08-15 12:56:32 +02:00
Daniel Gultsch 473f41646b pulled translations from transifex 2017-08-15 10:41:46 +02:00
Daniel Gultsch 4ed74eafc8 reset attempt counts on enable 2017-08-12 22:17:49 +02:00
Daniel Gultsch 699e845e6d default input type to numbers on captcha dialog 2017-08-12 22:17:24 +02:00
Daniel Gultsch 097fe3e1b6 no automatic reconnect on registration failures 2017-08-12 22:17:04 +02:00
Daniel Gultsch d6193aa586 pulled translations from transifex 2017-08-12 12:07:52 +02:00
Daniel Gultsch 57c11d42d5 create a new axolotl service when the account jid changes 2017-08-10 22:34:03 +02:00
Daniel Gultsch 0da2f1ed3f prevent users from editing their account jid after successful login 2017-08-10 22:34:03 +02:00
Daniel Gultsch 26765a8a0d send unavailable presence before join 2017-08-10 22:33:40 +02:00
moparisthebest 197352b669 Read support for 12-byte IVs in addition to 16-byte IVs 2017-08-09 23:42:35 -04:00
Daniel Gultsch d8d1c1192f code cleanup and synchronized getMarkableMessage() 2017-08-09 09:43:41 +02:00
Daniel Gultsch 995d975127 removed support for fixed IV mode in otr jingle file transfer that hasn't been used since v0.4 or something 2017-08-09 09:43:12 +02:00
Daniel Gultsch cce5a7b39f parse jid from CN in client certs if nothing else is available 2017-08-07 16:02:48 +02:00
Daniel Gultsch 4a43df8c97 do not crash on some very rare logging 2017-08-07 15:55:56 +02:00
Daniel Gultsch 1ab391931d some code cleanup. and avoid scheduling reconnect task for negative interval 2017-08-05 19:13:29 +02:00
Daniel Gultsch 490115d20e do not run file observer on hidden directories 2017-08-05 19:12:44 +02:00
Daniel Gultsch 911e392006 update mini dns 2017-08-05 15:17:10 +02:00
Daniel Gultsch b925f436fd add more logging to http download connection and reset file params after setting expected size 2017-08-04 11:58:12 +02:00
Daniel Gultsch 014643b9c4 pulled translations from transifex 2017-08-03 14:21:22 +02:00
Daniel Gultsch c3cbb21133 cache some information generated from body like isEmojiOnly, fileParams and isGeoUri 2017-08-03 13:24:41 +02:00
Daniel Gultsch 7bcf173866 remove all whitespaces in emoji only messages 2017-08-03 10:55:14 +02:00
Daniel Gultsch 225cca4566 provide extra 'network is unreachable' account state 2017-08-02 18:58:51 +02:00
Daniel Gultsch 768eadde36 use random string generator instead of BigInteger in DigestMd5 2017-08-01 12:27:26 +02:00
Daniel Gultsch 82c5924434 display messages that only contain emoji slightly larger 2017-07-30 22:04:58 +02:00
Daniel Gultsch e11277c70f use base64 instead of base36 when creating random strings 2017-07-30 11:39:47 +02:00
Daniel Gultsch 01b207d44d avoid empty strings when figuring out display name 2017-07-30 11:39:16 +02:00
Daniel Gultsch f5da4791ad avoid unnecessary roster sync in OMEMO code. fixed startup performance regression 2017-07-29 13:50:32 +02:00
Daniel Gultsch 837c212931 refresh omemo activity after failing to fetch keys due to lack of ids 2017-07-28 18:37:07 +02:00
Daniel Gultsch ad601e47c8 fixed roster items w/o subscription (request) not being shown 2017-07-28 18:34:55 +02:00
Daniel Gultsch ea6289c02e pulled translations from transifex 2017-07-26 13:23:40 +02:00
Daniel Gultsch d6e51288c3 Merge pull request #2564 from yushijinhun/fix-decryption-blocked
Give up PGP decryption when intent is cancelled
2017-07-25 09:20:51 +02:00
yushijinhun 48147b7fd1
Give up PGP decryption when intent is cancelled
When receiving a PGP message which is not encrypted with YOUR key,
OpenKeychain shows a dialog, which tells you the private key to decrypt
the message is unavailable. However, Conversations won't give up
decrypting the message. So whether the subsequent messages are
decryptable or not, the decryption is blocked at the current message.
The commit fixes the bug in this way: Give up the current message when
the decryption intent is cancelled, so that subsequent messages can be
handled.
2017-07-25 15:09:18 +08:00
Daniel Gultsch 432598f896 Merge branch 'bugfixes' 2017-07-23 07:53:09 +02:00
Daniel Gultsch c8bd5bc1f5 made OF selfSigned() workaround only available >=kitkat
this undos 8a729061d5. as it turns out 4.1
and 4.0 only break when checking if a cert is self signed.
2017-07-23 07:47:39 +02:00
Daniel Gultsch 2fc216bfc4 skip initial socket closing if thread was already interrupted 2017-07-21 08:30:16 +02:00
Daniel Gultsch 74cde1d60a incorporate support for publish-options into server info 2017-07-18 12:51:15 +02:00
Daniel Gultsch 85dc0c284d made omemo always available but in public mucs 2017-07-18 12:51:15 +02:00
Daniel Gultsch 002dbf2e17 enable all encryption options 2017-07-18 12:51:15 +02:00
Daniel Gultsch da87eac48e provide upgrade path for accounts with publish-options 2017-07-18 12:51:15 +02:00
Daniel Gultsch 9a57673130 use publish-options instead of always pushing node configuration 2017-07-18 12:51:15 +02:00
Daniel Gultsch 8d6b2074cb let hasPendingFetches() return true when fetching device ids 2017-07-18 12:51:15 +02:00
Daniel Gultsch 7a2856ac86 fetch required device ids on demand 2017-07-18 12:51:15 +02:00
Daniel Gultsch f7258d16e1 explicitly fetch device ids before building sessions in single mode conversation 2017-07-18 12:51:15 +02:00
Daniel Gultsch 25e993693f change access model of omemo pep nodes after every publish 2017-07-18 12:51:15 +02:00
Daniel Gultsch 6c95897f09 fetch device ids for muc members w/o known devices 2017-07-18 12:51:15 +02:00
Daniel Gultsch 2a198793b1 fixed otr jingle file size reporting 2017-07-18 12:43:53 +02:00
Daniel Gultsch 8a729061d5 use CN-workaround for pre-kitkat 2017-07-17 23:13:55 +02:00
Daniel Gultsch 8285a4fe1c pulled translations from transifex 2017-07-17 22:06:56 +02:00
Daniel Gultsch 217335703c fix regression introduces with OF fix. properly fall back to common name 2017-07-17 21:11:15 +02:00
Daniel Gultsch 0a20b87ebe check length first in timestamp parser 2017-07-16 21:03:59 +02:00
Daniel Gultsch febee9863f catch IllegalArgumentException caused by invalid custom hostname 2017-07-16 21:02:56 +02:00
Daniel Gultsch 8afe7efc2c workaround for OpenFire: check CN first in self signed certs
The self signed certificates created by OpenFire (Not sure if other
certs are affected as well) will crash the Java/Android TLS stack when
accessing getSubjectAlternativeNames() on the the peer certificate.

This usually goes unnoticed in other applications since the
DefaultHostnameVerifier checkes the CN first. That however is a
violation of RFC6125 section 6.4.4 which requires us to check for the
existence of SAN first.

This commit adds a work around where in self signed certificates we
check for the CN first as well. (Avoiding the call to
getSubjectAlternativeNames())
2017-07-16 11:05:25 +02:00
Daniel Gultsch dfa17d1339 more migration fixes for updating from 1.6.0 to 1.19.3 2017-07-14 10:34:01 +02:00
Daniel Gultsch 91119ab691 add reminder to remove minidns workarounds once those are fixed 2017-07-14 09:09:26 +02:00
Daniel Gultsch ea6b756c0f fixed bug in db migrations when going from <15 to something recent 2017-07-13 19:28:16 +02:00
Daniel Gultsch 3d0b127a8f verify with hostname in direct tls connections 2017-07-13 19:27:43 +02:00
Daniel Gultsch 7623accfd5 prefer DNS servers from VPNs 2017-07-12 22:19:45 +02:00
Daniel Gultsch 45f92553c4 pulled translations from transifex 2017-07-12 11:54:05 +02:00
Daniel Gultsch ecc0ef45c5 disable foreground service if all accounts are disabled 2017-07-12 11:03:32 +02:00
Daniel Gultsch edb28ccb31 throw state changing exception on failed tls only if no more connection options left 2017-07-11 23:25:59 +02:00