Daniel Gultsch
f6b22dad20
splite PARANOIA_MODE into three different options
2015-12-14 10:54:55 +01:00
Daniel Gultsch
042939e44d
make message text non-selectable. fixes #1606
2015-12-14 10:44:43 +01:00
Daniel Gultsch
b2c278c91b
set bookmark name to room subject if no subject has been set before
2015-12-11 19:28:44 +01:00
Daniel Gultsch
ac06cb2e4f
modified contact permission dialog
2015-12-07 13:24:41 +01:00
Daniel Gultsch
739648e909
ask for contact permissions when first opening StartConversationActivity
2015-12-07 13:24:41 +01:00
Daniel Gultsch
c3e8fb3446
request storage permission when needed on Android 6.0
2015-12-07 13:24:41 +01:00
Daniel Gultsch
739a2d609d
implement direct sharing in android 6.0. fixes #1321
2015-12-07 13:24:41 +01:00
Daniel Gultsch
904edf5d59
hide prepare file toast after preparing the file
2015-12-06 11:57:11 +01:00
Daniel Gultsch
bd765c59ce
check availabiltiy of pgp before sharing files
2015-12-05 19:03:17 +01:00
Daniel Gultsch
b7f326372d
be more carefull with pending uris
2015-12-05 19:02:57 +01:00
Daniel Gultsch
196c8e593f
Merge pull request #1595 from fiaxh/pgp_database_signature
...
Regenerate PGP signatures once
2015-12-04 15:35:51 +01:00
Daniel Gultsch
0664d6ac7b
avoid some NPEs
2015-12-04 15:35:22 +01:00
Daniel Gultsch
6b592435cd
parse vcard avatars from muc presences
2015-12-03 18:18:34 +01:00
fiaxh
e5f154316c
Unset all PGP signatures once
...
... so they will be redone to match the changed status.
2015-12-02 18:06:48 +00:00
Daniel Gultsch
025cbf7d44
show tor config in paranoid mode
2015-12-02 15:34:09 +01:00
Daniel Gultsch
02c6793ca9
fixed avatar loading for non-file uris
2015-12-02 15:30:03 +01:00
Philip Flohr
0329c9c738
users are now able to crop their avatar pictures using the android-crop
...
library
2015-12-02 14:25:20 +01:00
Daniel Gultsch
dc8967d8fc
introduced build-time paranoia mode that disables unencrypted chats and forces TOR
2015-12-01 22:41:58 +01:00
Daniel Gultsch
2cd43f7042
fixed crashes when activity got destroyed when selecting pgp key
2015-12-01 14:18:07 +01:00
Daniel Gultsch
ebccb67a72
do socks5 connect manually
2015-12-01 12:00:50 +01:00
Daniel Gultsch
f0b1761ec3
initial tor support
2015-12-01 12:00:50 +01:00
Daniel Gultsch
60211a315e
hide subject edit button if not editable by user
2015-11-26 17:44:29 +01:00
Daniel Gultsch
a557d38e4d
pgp fixes and revert configuration changes
2015-11-25 20:47:02 +01:00
fiaxh
c7a519498a
Sign empty status
2015-11-09 13:50:02 +00:00
fiaxh
fac1d4e0bd
Use OpenPGP-API 9.0
2015-11-09 13:49:57 +00:00
Daniel Gultsch
baf76d883c
indicate cbe in chat message hint
2015-10-31 22:55:04 +01:00
Daniel Gultsch
bca29cf7fd
explicitly mark verified omemo keys in UI
2015-10-31 10:57:57 +01:00
Daniel Gultsch
6a458b853c
Merge pull request #1513 from fiaxh/pgp_background_decryption
...
PGP messages background decryption
2015-10-30 10:18:27 +01:00
Daniel Gultsch
1221cff561
load avatars in message adapter in background task
2015-10-29 12:08:15 +01:00
Daniel Gultsch
a7fd629c05
show encryption type in warned/red messages
2015-10-28 22:40:09 +01:00
fiaxh
016a57f123
Show PGP "please wait" message only when actually decrypting
2015-10-28 20:57:15 +00:00
fiaxh
29a849cb92
Decrypt PGP messages in background
2015-10-28 19:57:11 +00:00
Daniel Gultsch
ec473a4437
Merge pull request #1520 from saqura/self_handle_orientation
...
Handle some orientation changes manually
2015-10-26 09:30:08 +01:00
saqura
48f172fc9e
Reset the margins manually after rotating
2015-10-26 00:59:32 +01:00
Daniel Gultsch
56afdcc94a
invalidate menu after backend connection.
...
fixes the menu not being shown after rotation in edit account details
2015-10-25 22:46:06 +01:00
Daniel Gultsch
f4a33a007c
open unknown files with wildcard intent
2015-10-20 17:41:07 +02:00
Daniel Gultsch
569b9f4e66
open manage account + certificate chooser when cbe mode is enabled
2015-10-20 15:27:33 +02:00
Daniel Gultsch
efab290c28
add nick to bookmark when entering full jid in join conference dialog
2015-10-19 23:20:00 +02:00
Daniel Gultsch
0f405c2e11
allow redownloading files from remote hosts. fixes #1504
2015-10-17 15:23:46 +02:00
Daniel Gultsch
a83aae341f
improved error reporting in trust keys activity
2015-10-17 14:09:26 +02:00
Daniel Gultsch
cfeb67d71d
introduced code to verify omemo device keys with x509 certificates.
...
cleaned up TrustKeysActivity to automatically close if there is nothing to do
2015-10-16 23:48:42 +02:00
Daniel Gultsch
5f9476448f
make unread status and notifications presistent across restarts
2015-10-14 21:18:34 +02:00
Daniel Gultsch
f24649c819
set cursor to end of jid in edit account
2015-10-13 16:58:08 +02:00
Daniel Gultsch
212d1a8c91
add config variable to enable x509 verification
2015-10-12 13:18:20 +02:00
Daniel Gultsch
933538a39d
code clean up
2015-10-12 12:36:54 +02:00
Daniel Gultsch
7be331bbb2
add menu item in account details to renew certificate
2015-10-11 16:10:52 +02:00
Daniel Gultsch
da31582911
Merge pull request #1461 from akallabeth/captcha_support
...
Implemented account registration with captcha
2015-10-11 15:56:42 +02:00
Daniel Gultsch
9e1393bc1c
prevent null pointer when trying to display device fingerprints of not existing sessions
2015-10-11 14:27:09 +02:00
Armin Novak
6a6cb43b17
Captcha support.
2015-10-11 13:11:50 +02:00
Daniel Gultsch
b23cb5a9e4
initial UI work to allow setting up accounts from certifcates
2015-10-09 13:37:08 +02:00
Daniel Gultsch
ef605e4cbd
do not dismiss editAccountActivity when still trying to register new account
2015-10-09 10:49:30 +02:00
Daniel Gultsch
52a5e72b02
introduced expert options to set status to away and xa if screen is off or if phone is silenced
2015-10-08 00:35:04 +02:00
saqura
403db3b080
Show whether MAM is supported in MUCs
...
The conference details in "Advanced Mode" now indicate whether MAM is
supported by the conference server.
2015-10-06 16:23:05 +02:00
Daniel Gultsch
160dfa49a0
try to catch plattform bugs
2015-10-02 11:58:03 +02:00
Daniel Gultsch
8881b71079
do tab completion only if neither ctrl nor alt are being pressed
2015-09-28 14:36:10 +02:00
Daniel Gultsch
f4d6b676e9
catch rare activity not found exception when opening downloaded files
2015-09-27 21:27:07 +02:00
Daniel Gultsch
bbbc30e823
allow tab completion in conferences
2015-09-27 19:17:44 +02:00
fiaxh
a3a13dd9dc
Export logs to SD card preference
2015-09-21 18:53:29 +01:00
Daniel Gultsch
07c7f5bc08
catch IndexOutOfBoundsException when swiping away conversations
2015-09-17 14:02:28 +02:00
Daniel Gultsch
96575d6290
added possibiltiy to set conferences as moderated (only visible in advanced mode)
2015-09-13 17:13:46 +02:00
Daniel Gultsch
650abf1c52
added alt as possible modifier key. use mod+(0..9) to jump to a conversation
2015-09-09 23:28:37 +02:00
Daniel Gultsch
6bb9983d58
added rotation detection to up/down navigation
2015-09-07 20:45:21 +02:00
Daniel Gultsch
6308dcfdd4
added some key binding
...
* ctrl + tab will open the conversations overview (when available)
* ctrl + up / down will navigate between conversations
2015-09-07 15:46:27 +02:00
Daniel Gultsch
88cdd03f0f
catch npe in setupIme method
2015-09-07 13:31:24 +02:00
Daniel Gultsch
eff173ebc2
indicate broken pep in server info
2015-09-06 19:40:28 +02:00
Andreas Straub
a95c451f1e
Only show that have sessions in fingerprint list
...
Doesn't access database directly anymore but goes through AxolotlService
now to obtain list of fingerprints associated with an Account/Contact.
This should prevent orphaned keys littering the UI which previously
couldn't be removed through the Clear Devices function.
Together with 1c79982da84964c1d81179a0927d9cd1eadf53de this fixes #1393
2015-09-06 15:15:57 +02:00
Daniel Gultsch
1848b46195
invoke onEnterPressed callback only if shift is not pressed
2015-09-04 19:33:31 +02:00
Daniel Gultsch
9baa87e5c9
minimize softkeyboard only if it has been in fullscreen mode
2015-09-04 18:02:53 +02:00
Daniel Gultsch
204cee4a17
show an send button instead of the enter key in softkeyboards when enterIsSend and showEnterKey are both set
2015-09-04 14:48:00 +02:00
Andreas Straub
b265341848
Ensure uris is empty before onStart adds to it
...
Fixes #1382
2015-09-02 22:03:15 +02:00
Daniel Gultsch
eff9e417e0
use dedicated colors for primary and primary_dark
2015-08-26 21:17:29 +02:00
Daniel Gultsch
c5abddc584
fixed highlight text color for white chat bubbles
2015-08-26 21:12:19 +02:00
Michael
ae9de26f59
remove unused imports.
2015-08-25 12:40:22 +02:00
Daniel Gultsch
730a5c644b
renamed plain text to unencrypted. fixes #1331
2015-08-24 21:15:47 +02:00
Daniel Gultsch
fb0b4bb445
added setting to allow for white backgrounds in incoming message bubbles
2015-08-24 20:56:25 +02:00
Andreas Straub
45d68c200e
Display error message if all contact keys purged
2015-08-15 18:52:47 +02:00
hlad
4539643f27
show HTTP upload availability on Edit account screen
2015-08-14 22:24:05 +02:00
Daniel Gultsch
3677c6ec98
use same code that is used to open files for images
...
fixes #1323
2015-08-11 15:24:06 +02:00
Daniel Gultsch
c0dcf4a55a
changed color of 'whispered' prefix
...
fixes #1326
2015-08-11 15:13:17 +02:00
Daniel Gultsch
8b9b74ff7e
renamed multi-end / axolotl to OMEMO
2015-08-08 13:29:21 +02:00
Daniel Gultsch
5c0853f302
hide multi-end and otr encryption in conferences
2015-08-06 13:09:53 +02:00
Andreas Straub
34b22dea48
Improve TrustKeysActivity slider responsiveness
...
Slider used to skip back on drag-and-drop action. The switch doesn't
trigger explicit whole UI refreshes anymore, it now directly adjusts the
"done" button's locked status.
2015-08-05 22:24:13 +02:00
Daniel Gultsch
a1c43d8fdf
added config.java variable to hide openpgp as an encryption method
2015-08-05 18:52:34 +02:00
Daniel Gultsch
c617cf6ef8
added Config.java varibale to lock account creation to specfic domain
2015-08-03 22:58:17 +02:00
Andreas Straub
6cd9383e53
Let UNTRUSTED/UNDECIDED keys become INACTIVE
2015-08-01 18:30:11 +02:00
Andreas Straub
909f761ca1
Refactor axolotl message processing workflow
...
XmppAxolotlMessage is now entirely responsible for handling encryption
and decryption of messages, only leveraging XmppAxolotlSession as a
packing/unpacking primitive for payload keys.
Removed pseudo-dead session generation code step from prepareMessage
function, as sessions have been created by invoking the
TrustKeysActivity for a while now.
Added prepareKeyTransportMessage function, which creates a message with
no payload. The key that is packed into the header keyElements can then
be used for other purposes (e.g. encrypted file transfer).
2015-07-31 21:31:45 +02:00
Daniel Gultsch
658919f239
improved 'next encryption' selection
2015-07-31 00:52:46 +02:00
Andreas Straub
74ab36fda2
Fix session logic: enforce same type of encryption
2015-07-30 19:18:09 +02:00
Daniel Gultsch
1ed550b5c5
fixed some colors in message adapter
2015-07-30 12:40:50 +02:00
Andreas Straub
b7c64cd19d
Reset lock color for non-axolotl messages
2015-07-29 20:25:14 +02:00
Andreas Straub
2b3bb02261
Highlight selected message's fingerprint in list
2015-07-29 20:21:37 +02:00
Andreas Straub
e07853ea62
Rerender message bubbles on encryption change
2015-07-29 20:10:21 +02:00
Andreas Straub
e6df4d81d2
Tag carbon messages in parser, adapt session logic
...
Messages sent from another device of the own account are now explicitly
tagged as carboned message. The session detection logic now uses this
tag to find "session borders".
2015-07-29 16:41:58 +02:00
Andreas Straub
77920c7aa6
Color plaintext messages in encrypted sessions red
...
Plaintext messages that were received while in an encrypted session are
now colored red. We define "in an encrypted session" if a) the last
message sent by our own device before the message under consideration
(or any message received between then and now) was encrypted AND b) the
next message will be sent encrypted or the next message sent after the
one under consideration was sent encrypted
2015-07-29 02:59:41 +02:00
Andreas Straub
a3991d59c9
Improve trust toggle responsiveness
...
Removed unnecessary UI refreshes, explicitly update UI where needed.
2015-07-29 02:59:41 +02:00
Andreas Straub
efcefc2e63
Refactor out inner classes, cache trust store
...
Moves SQLiteAxolotlStore and XmppAxolotlSession into proper classes.
IdentityKeys trust statuses are now cached in an LruCache to prevent
hammering the database when rendering the UI.
2015-07-29 02:59:26 +02:00
Daniel Gultsch
e5fae429fa
call refreshUi directly
2015-07-24 14:43:13 +02:00
Daniel Gultsch
cd204d5931
show warning when trying to highlight users that have left the conference
2015-07-22 15:57:17 +02:00
Daniel Gultsch
a1e63944a2
use 'interactive mode' when starting downloads from the context menu
2015-07-22 12:15:09 +02:00
Andreas Straub
c2813cea29
Hide regenerate keys button
...
Can re-enable it via Config.java setting
2015-07-22 01:00:20 +02:00
Andreas Straub
4c1c2892c7
Disable trust toggle completely for INACTIVE keys
2015-07-22 00:53:54 +02:00
Andreas Straub
92b5081b5e
Add INACTIVE state for removed keys
...
We introduce a new trust state: INACTIVE. This state is intended for
old keys that have been removed.
When a TRUSTED device is removed from the PEP devicelist, it's status
will be set to INACTIVE. INACTIVE keys are shown in the UI as greyed
out, non-interactible key rows. Messages are not encrypted for INACTIVE
devices.
When an INACTIVE device reappears in PEP, or a message is received from
an INACTIVE device, it is set back to trusted.
2015-07-21 14:24:59 +02:00
Daniel Gultsch
1aeb5874b0
allow for private messages being started from muc details in anonymous mucs
2015-07-21 13:15:59 +02:00
Andreas Straub
8be0e8a27d
Start TrustKeysActivity if no keys are TRUSTED
...
If there are no UNDECIDED keys, but none of the contact's keys are
trusted, redirect the user to the TrustKeysActivity
2015-07-20 22:35:07 +02:00
Andreas Straub
4ee3f330f5
Do not display clear devices button if not online
2015-07-20 22:19:04 +02:00
Andreas Straub
ab2d114bbc
Add purge axolotl key option
...
Can now long-press a key to permanently purge it.
2015-07-20 22:18:24 +02:00
Raphael Pohl
e6cb12dfe4
changed message bubble appearance
2015-07-20 16:02:17 +02:00
Daniel Gultsch
504ef0b72e
rely on refreshUi/refreshUiReal and make sure it is being used everywhere
2015-07-20 15:48:58 +02:00
Andreas Straub
aaa8fe8978
Merge branch 'CryptoNextBeta' into development
...
* CryptoNextBeta: (60 commits)
Lock TrustKeys if no trusted keys are available
Optimize imports
Use MD style for key trust toggle switch
Fix set/remove OnUpdateBlocklistListener
Fix axolotl database migration
Remove device list from EditAccount
Add clear devices to overflow menu in EditAccount
Ask for key trust when sending messages
Encrypt files for HTTP upload in encrypted chats
Refactor trust key ui and show in account details
Send correct body for HTTP files
Handle file transmission properly in axolotl
Remove unneccessary code
Fix trust status for outgoing messages
Don't merge messages with different trust statuses
Fix copying of axolotl keys to clipboard
Add refresh icon to v21 theme
Disable Axolotl option if not usable
Show trust status of messages' originating session
Add key trust toggle to ContactDetailsActivity
...
2015-07-20 15:13:14 +02:00
Andreas Straub
19a0ae42d6
Lock TrustKeys if no trusted keys are available
2015-07-20 14:56:41 +02:00
Andreas Straub
012f036840
Optimize imports
2015-07-20 14:26:29 +02:00
Daniel Gultsch
9c91b9036a
don't show 'show contact details' context menu item when contact isn not in roster
2015-07-20 14:24:59 +02:00
Andreas Straub
2240066bbe
Remove device list from EditAccount
2015-07-19 23:38:09 +02:00
Andreas Straub
480b1cde81
Add clear devices to overflow menu in EditAccount
2015-07-19 23:35:03 +02:00
Andreas Straub
14010bf5a6
Ask for key trust when sending messages
...
If the contact (or the own account) has keys that have UNDECIDED trust,
we now drop the user into the new TrustKeysActivity, where they have to
decide for each new key whether it should be TRUSTED or UNTRUSTED.
2015-07-19 22:27:26 +02:00
Andreas Straub
6f67469bda
Refactor trust key ui and show in account details
...
Refactored the trust key row UI element so it can be used in multiple
places. It now also uses a slider to toggle the trust state, and the
redundant trust state description was removed.
EditAccountActivity now shows the keys of other devices associated with
that account.
2015-07-19 22:24:03 +02:00
Andreas Straub
4038af2f47
Fix trust status for outgoing messages
...
Tag sent messages with own fingerprint, set own fingerprint as always
trusted, include own fingerprint in database trust search, explicitly
reset trust colorfilter
2015-07-19 22:23:28 +02:00
Sam Whited
fca0c36757
Fix copying of axolotl keys to clipboard
2015-07-19 22:23:28 +02:00
Sam Whited
3ab59c93a6
Add refresh icon to v21 theme
2015-07-19 22:23:27 +02:00
Andreas Straub
6c38e53128
Disable Axolotl option if not usable
...
In MUCs or if contact is not axolotl capable, disable axolotl menu
option
2015-07-19 22:23:27 +02:00
Andreas Straub
9e8d9a6401
Show trust status of messages' originating session
...
Shade lock icon red if message was received in a session that has not
been marked trusted by the user or fingerprint is unknown
2015-07-19 22:23:27 +02:00
Andreas Straub
3d33946088
Add key trust toggle to ContactDetailsActivity
...
Can now toggle IdentityKey trust
2015-07-19 22:23:27 +02:00
Andreas Straub
23a4e1e6fa
Display trust status in ContactDetailsActivity
2015-07-19 22:23:25 +02:00
Andreas Straub
2628662a7f
Display axolotl chat message hint
2015-07-19 22:17:57 +02:00
Andreas Straub
7049904c32
Add basic PEP managemend UI to EditAccountActivity
...
EditAccountActivity now show own fingerprint, and gives an option to
regenerate local keying material (and wipe all sessions associated with
the old keys in the process).
It also now displays a list of other own devices, and gives an option to
remove all but the current device.
2015-07-19 22:17:55 +02:00
Christian S
37b214a8a8
show contact details in conference details ...
2015-07-19 22:11:51 +02:00
Andreas Straub
8fd46d40d6
Adapt prettifyFingerprint() to axolotl FP sizes
2015-07-19 21:32:27 +02:00
Andreas Straub
491f623708
Fix displaying Contact IdentityKeys
...
Migrate ContactDetailsActivity to use new SQL IdentityKeys storage,
remove dead code from Contact class.
2015-07-19 21:32:27 +02:00
Andreas Straub
299bbdf27f
Reformat code to use tabs
...
This really sucks to do it like this. Sorry. :(
2015-07-19 21:32:26 +02:00
Andreas Straub
065519d3f3
Added axolotl activation code to UI
2015-07-19 21:32:26 +02:00
Daniel Gultsch
f58b2afcaa
changed switch widget
2015-07-18 19:38:52 +02:00
Daniel Gultsch
aa1b9de20c
code cleanup
2015-07-17 23:58:53 +02:00
Daniel Gultsch
13cce172ab
show error message in account details when info has not been edited
2015-07-17 13:14:24 +02:00
Daniel Gultsch
425f0479a8
even less jumpy
2015-07-16 14:06:54 +02:00
Daniel Gultsch
6a329c7465
fixed some ux glitches in editaccount
2015-07-16 13:42:52 +02:00
Daniel Gultsch
b477b8f57b
fixed some npes
2015-07-16 13:14:51 +02:00
Daniel Gultsch
b525b42e59
fixed crash on invalid muc bookmarks
2015-07-15 17:42:08 +02:00
Daniel Gultsch
ffffca10f0
renamed colors
2015-07-13 12:55:13 +02:00
Daniel Gultsch
84bfe8c721
catch exception on broken android phones
2015-07-12 20:17:12 +02:00
Daniel Gultsch
558d065d48
made lock button reflect encryption status of the next messages instead of the last
2015-07-12 17:59:22 +02:00
Daniel Gultsch
78aff1329f
renamed HttpConnection to HttpDownloadConnection
2015-07-10 15:14:13 +02:00
Daniel Gultsch
ce79f4bbe3
renamed downloadable to transferable
2015-07-10 15:11:03 +02:00
Daniel Gultsch
0f5c87ca1f
display toast in ui on failed http download
...
fixes #954
2015-07-10 13:28:50 +02:00
Daniel Gultsch
b02ef0c62f
show timestamp on images in mucs
...
fixes #1178
2015-07-10 12:42:41 +02:00
Daniel Gultsch
c745fbb562
fixed share with activity to account for http file upload
2015-07-02 23:51:59 +02:00
Daniel Gultsch
f5ba9d4223
refactored message context menu
2015-07-02 23:13:00 +02:00
Daniel Gultsch
c20a088ea8
changed mime type handling
2015-07-01 16:01:18 +02:00
Daniel Gultsch
aca9d8036c
made httpconnection (download) ready all kind of files
2015-06-30 17:15:02 +02:00
Daniel Gultsch
d7de311379
refactored bodyContainsDownloadable to be more flexible
2015-06-30 13:52:53 +02:00
Daniel Gultsch
5b42b392a1
always show copy original url in context menu when url is available
2015-06-30 13:01:04 +02:00