Commit graph

1440 commits

Author SHA1 Message Date
Daniel Gultsch b648c482f3 allow corrections in all mucs 2019-02-07 18:11:07 +01:00
Daniel Gultsch ad64058d25 hide lock icon in channels; modify muc user context 2019-02-07 13:18:42 +01:00
Daniel Gultsch b6a501d24b rights managment in muc 2019-02-06 23:47:29 +01:00
Daniel Gultsch 32ef3755e2 show different room settings for channels and groups 2019-02-06 18:29:07 +01:00
Daniel Gultsch 2b913f367d provide the same fab submenu for both tabs. rename tab to bookmark 2019-02-06 14:45:51 +01:00
Daniel Gultsch e0965a2bf2 remove warning messages for kick after ban failing. on modern servers ban is enough to also kick 2019-01-28 10:52:35 +01:00
Daniel Gultsch 8bc9f9a7c8 fixed context menu on self contact 2019-01-27 18:57:41 +01:00
Daniel Gultsch 2bc9fdf5d3 show sub menu fabs for create group chats. fixes #2950 2019-01-27 16:35:55 +01:00
Daniel Gultsch 20e731c956 show context menu when long pressing own account picture 2019-01-27 11:38:20 +01:00
Daniel Gultsch 2f3ccb5f90 changed order of users and media in muc details 2019-01-27 10:32:27 +01:00
Daniel Gultsch b532f5ed1f add context menu for muc user adapter 2019-01-26 20:31:52 +01:00
Daniel Gultsch b9c4309a28 refactored group chat members into seperate screen 2019-01-25 17:58:23 +01:00
Licaon_Kter 0ba3f31cbc Fix type in presence (#3357) 2019-01-25 13:39:36 +00:00
Daniel Gultsch 7f170276a9 refactored avatar workers into single class 2019-01-25 10:07:02 +01:00
Daniel Gultsch 04d1b92a79 make bitmap worker task static; migrate conversation list row to binder 2019-01-24 12:27:57 +01:00
Daniel Gultsch 2e0db4dcda do not show installed accounts in restore view 2019-01-23 12:45:15 +01:00
Daniel Gultsch 18982174ce ask for permissions before opening restore backup. use insert or ignore for messages 2019-01-23 11:20:36 +01:00
Daniel Gultsch c9fc40dfe5 WIP backup & restore 2019-01-22 19:25:45 +01:00
Daniel Gultsch 526c2637c1 provide Set as Profile intent. fixes #2594 2019-01-13 15:28:24 +01:00
Daniel Gultsch 67fddd1654 fix manual location correcting / fab not showing up on 4.4
fixes #3097
2019-01-12 21:08:17 +01:00
Daniel Gultsch c5e35dc4b3 extend open with to audio files 2019-01-12 10:29:41 +01:00
Daniel Gultsch d2b8134cdf check if we have storage permission before marking a file as deleted on resend 2019-01-12 10:09:45 +01:00
Daniel Gultsch e9bf2b464c explicitly set type=images for all media with an image mime type
this is in preperation to be able to query the database for all images
2019-01-12 09:01:35 +01:00
Daniel Gultsch 8124b24479 maintain order of conversations in share with dialog 2019-01-11 17:19:54 +01:00
Daniel Gultsch c11dd71510 fixed regression that hid enter jid button in block list view 2019-01-11 14:49:03 +01:00
Daniel Gultsch a38cd88702 offer 'open with' in context menu for geo uris 2019-01-11 10:13:25 +01:00
Daniel Gultsch 394e252777 support enter/done key in create contact & join dialogs 2019-01-10 22:09:20 +01:00
Daniel Gultsch 7cabb2c377 check if encrypted pgp file get deleted 2019-01-10 21:24:24 +01:00
Daniel Gultsch 8ab4ca7138 fixed downloading of deleted files 2019-01-10 21:23:53 +01:00
Daniel Gultsch 52afcac230 mark deleted files in database and not query them when querying for media 2019-01-10 14:52:27 +01:00
Daniel Gultsch 459db1a0a3 ignore startService failure
some nokia devices with Android 9 fail to start the service from the activity sometimes. since this is probably a race it should be save to ignore this
2019-01-09 18:30:28 +01:00
Daniel Gultsch 46eb1212f1 fix import after osmdroid update 2019-01-06 10:13:31 +01:00
Daniel Gultsch 136d1e1905 added work around to create 'actions' from nova launcher
fixes #3331
2019-01-05 10:31:13 +01:00
Christoph Scholz 52e1a0c708 implement room destruction 2019-01-02 18:06:38 +01:00
Daniel Gultsch 6ac1c00d00 clear conversationsuuid and pending attachments when opening new conversation 2019-01-02 09:36:22 +01:00
Daniel Gultsch a849c34f56 clear pending view intent when processing onNewIntent() 2019-01-02 09:32:22 +01:00
Daniel Gultsch 3eaa48fa46 added epub and azw mime types. try to resolve application/octet-stream by file extension instead. added preview icons for ebooks 2018-12-22 13:02:45 +01:00
Daniel Gultsch 5c920a9362 fixed some rare crashes caused by race conditions 2018-12-17 19:35:08 +01:00
Daniel Gultsch 30d5c08c35 show accept button to confirm sasl downgrade. fixes #2498 2018-12-16 23:12:04 +01:00
Daniel Gultsch 8f27a177b0 try to guess inital location in ShareLocation based on sim card 2018-12-11 17:25:59 +01:00
Daniel Gultsch ae9bfe1643 limit video transcoding to api >= 18 and other api 16 fixes 2018-12-10 13:58:05 +01:00
Daniel Gultsch c071a53595 Merge branch 'api-level-18' of https://github.com/deuill/Conversations into deuill-api-level-18 2018-12-10 13:13:16 +01:00
Daniel Gultsch 1a1bfb3246 show warning snackbar before joining anon-non-private room. fixes #3306 2018-12-09 18:25:11 +01:00
Alex Palaistras 08529041a5 Reduce minSdkVersion to 18, backfill missing methods
This reduces the minimum SDK version to 18 (Android 4.3), which notably is
the last supported version for the BlackBerry OS 10.3 Android compatibility
layer.
2018-12-08 19:50:13 +00:00
Daniel Gultsch fa5ba9e02b fixed some rare NPE caused by race for saveInstanceState() 2018-12-05 09:27:10 +01:00
Daniel Gultsch c01bd38d00 show context menu when long clicking avatar in 1:1 2018-12-04 12:23:14 +01:00
Daniel Gultsch 875810e1c7 offer to start/install orbot for edit account screen. fixes #1980 closes #2834 2018-12-03 13:15:06 +01:00
Daniel Gultsch c02676ea4c implement self healing omemo
after receiving a SignalMessage that can’t be decrypted because of broken sessions
Conversations will attempt to grab a new pre key bundle and send a new PreKeySignalMessage
wrapped in a key transport message.
2018-12-02 14:41:29 +01:00
Daniel Gultsch f1e1c4a78d keep track of previously edited ids 2018-12-01 15:52:44 +01:00
Daniel Gultsch fdbed9cf58 open direct search after hitting + in share with screen 2018-12-01 13:27:00 +01:00
Daniel Gultsch d53143ab34 change audio attributes for notification channel
This may help on platforms that make a difference between ringtone volume and notification volume
2018-11-27 10:41:19 +01:00
Daniel Gultsch 40e46ed8fa make sure that conversation is 1:1 before offering to select presence on file resend 2018-11-23 13:11:51 +01:00
Daniel Gultsch f63a209881 cancel magic mode attribute after changing password once 2018-11-22 12:31:06 +01:00
Daniel Gultsch 66850a525a removed unecessary code in time preference 2018-11-22 10:07:10 +01:00
Daniel Gultsch 23cc305720 refactor quite hours to make them time zone indepentent. fixes #2565 2018-11-21 18:14:02 +01:00
Daniel Gultsch 2c73b62f67 make password editable on auth error 2018-11-21 16:45:38 +01:00
Daniel Gultsch f8fbb36a98 attempt to work around bugs in Chinese ROMs 2018-11-21 12:08:41 +01:00
Daniel Gultsch 0381fe3c06 remove now unused password has changed in magic mode 2018-11-21 11:55:29 +01:00
Daniel Gultsch 03d5aa8aeb show 'show password' toggle for all magically created accounts. make quicksy accounts magically created 2018-11-20 21:33:43 +01:00
Daniel Gultsch 5490e98b14 use toastcompat library to catch BadTokenException in attempt to fix #3279 2018-11-20 17:17:14 +01:00
Daniel Gultsch 4d4f63be20 do not display toast if activity is finishing 2018-11-18 17:08:37 +01:00
Daniel Gultsch 300006a529 offer to copy error message to clipboard. fixes #3277 2018-11-18 11:45:24 +01:00
Daniel Gultsch 6715a4c353 make change nick toast use showToast helper method. fixes #3279 2018-11-18 11:21:52 +01:00
Daniel Gultsch cf18bd08fc provide option to reject subscription request when long pressing 'allow' 2018-11-18 10:34:14 +01:00
Daniel Gultsch 4f22859acf catch illegal state exception on fragment transaction 2018-11-17 12:59:19 +01:00
Daniel Gultsch ab43a4bcf9 use display name to generate own avatar 2018-11-11 10:13:45 +01:00
Daniel Gultsch 306e12b24e fixed race condition that prevented bookmark nick to be used 2018-11-10 17:33:24 +01:00
Daniel Gultsch ccf9c42d0d don’t show edit nick on Conversations 2018-11-10 10:19:29 +01:00
Daniel Gultsch e335c59600 suggest previously assigned nick in Enter Name Activity 2018-11-09 18:52:42 +01:00
Daniel Gultsch 5012ff3545 added interface to edit nick 2018-11-09 17:47:36 +01:00
Daniel Gultsch 235f33b8b1 change contact sync explain dialog for quicksy 2018-11-08 19:04:07 +01:00
Daniel Gultsch 41b9c0de55 paramterize about activity title 2018-11-08 13:02:14 +01:00
Daniel Gultsch e450626d5c add suggested contacts to roster on first message 2018-11-08 12:20:46 +01:00
Daniel Gultsch 5be43e36e4 always do contact sync in background 2018-11-07 15:44:39 +01:00
Daniel Gultsch 8a67f31368 display spinning wheel + swipe to refresh for quicksy 2018-11-07 13:42:01 +01:00
Daniel Gultsch d8fc03b2f7 show 'send pm' button in anon chats. fixes #3257 2018-11-03 17:07:02 +01:00
Daniel Gultsch f0d5dc583d use inContactList() instead inRoster() in the proper places 2018-11-03 16:32:08 +01:00
Daniel Gultsch 2c31fbae78 show synced contacts in choose contact activity 2018-10-31 13:33:55 +01:00
Daniel Gultsch 1bcbd257c3 refresh contacts when opening StartConversationsActivity 2018-10-31 13:33:55 +01:00
Daniel Gultsch 87cc53b8b5 renamed build flavors 2018-10-31 13:33:55 +01:00
Daniel Gultsch 4df0cc3657 do not offer tor or extended connection settings for quicksy 2018-10-31 13:33:55 +01:00
Daniel Gultsch 3b31133606 do not show up navigation when opening edit account from notification 2018-10-31 13:33:55 +01:00
Daniel Gultsch f7addc5d89 suggest quicksy.im when user enters e164 in enter jid dialog 2018-10-31 13:33:55 +01:00
Daniel Gultsch c9abe1c610 Do not show 'Hide offline' in Quicksy 2018-10-31 13:33:55 +01:00
Daniel Gultsch 36c9a452ab always prevent edit in quicksy mode 2018-10-31 13:33:55 +01:00
Daniel Gultsch 60fc985298 do not show up navigation in start conversation screen if called with view intent 2018-10-31 13:33:55 +01:00
Daniel Gultsch ec56d7de88 added a choose country activity 2018-10-31 13:33:55 +01:00
Daniel Gultsch f10f3730e1 added new menu item 'manage account' and show when on quick 2018-10-31 13:33:55 +01:00
Daniel Gultsch a420cb5886 refactored some ManageAccount, WelcomeActivity and a few other things into 'full' flavor 2018-10-31 13:33:55 +01:00
Daniel Gultsch a3744ce4f8 improve openkeychain error reporting 2018-10-25 18:16:02 +02:00
Daniel Gultsch 18752a5c58 write null bitmap to imageview to replace asyncdrawable 2018-10-24 20:00:56 +02:00
Daniel Gultsch d6f604a8e4 code cleanup, null check not necessary when using instance of 2018-10-24 20:00:25 +02:00
Daniel Gultsch bb6ddae76b ask for permission when committing attachments. fixes #3248 2018-10-24 20:00:06 +02:00
Daniel Gultsch 185d36d270 do not provide up navigation in publish account when in setup mode 2018-10-23 21:25:38 +02:00
Daniel Gultsch f9cafc144b refactor magic creates password gen to CryptoHelper 2018-10-20 00:05:10 +02:00
Daniel Gultsch 7177c523a1 Do not insert text shared over XMPP uri when already drafting message
XMPP uris in the style of `xmpp:test@domain.tld?body=Something` can be used to
directly share a message with a specific contact. Previously the text was
always appended to the message currently in draft. The message was never send
automatically. Essentially those links where treated like normal text share
intents (for example when sharing a URL from the browser) but without the
contact selection.

There is a concern (CVE-2018-18467) that when this URI is invoked automatically
and the user is currently drafting a long message to that particular contact
the text could be inserted in the draft field (input box) without the user
noticing.

To circumvent that the text shared over XMPP uris that contain a particular
contact is now appended only if the draft box is currently empty.

Sharing text normally (**with** manual contact selection) is still treated the
same; meaning the shared text will be appended to the current draft. This is
intended behaviour to make the
'Hey I have this cool link here;' *open browser*, *share link* - secenario
work.
2018-10-19 15:39:31 +02:00
Daniel Gultsch 71bbd379e9 removed unused paramater 'newTask' from switchToConversation api 2018-10-19 15:18:36 +02:00
Daniel Gultsch 2edab21423 render 'read up to this point' in 1:1 when followed by date bubble
fixes #3237
2018-10-16 12:18:28 +02:00
Daniel Gultsch 5718d552ed do not show 'open website' button after info has changed
fixes #3220
2018-10-11 05:06:46 +02:00
Daniel Gultsch 7c5af89c89 offer either 'cancel download' or 'delete file' but not both
fixes #3221
2018-10-11 04:33:14 +02:00
Daniel Gultsch 57fe153ef1 make 'cancelled' work for jingle ft 2018-10-08 10:31:41 +02:00
Daniel Gultsch bdb8d98eb1 show snackbar for remote server timeout in mucs 2018-10-08 10:31:11 +02:00
Daniel Gultsch de0741bdf7 show cancelled instead of delivery failed if user requested to abort transfer 2018-10-07 14:59:08 +02:00
Daniel Gultsch 8980a0c631 make jids appear as monospace in dialogs 2018-10-06 17:03:12 +02:00
Daniel Gultsch fd165e5106 add confirmation dialog for deleting files
fixes #3202, closes #3193, closes #3214
2018-10-06 14:59:28 +02:00
Daniel Gultsch 7aa8aba5c0 code cleanup / reformat in ShareViaAccount 2018-10-06 12:48:39 +02:00
Daniel Gultsch bfa63e13c5 added a few TODOs in regards to the handling of inactive devices 2018-10-04 18:48:45 +02:00
Daniel Gultsch 04ac2264e8 Do weOwnFile security check only when attaching
The general security check is recommend so a third party can not ask us to send an internal file. But we don’t need to do this for files we attach ourself from within Conversations
2018-10-04 17:17:20 +02:00
Daniel Gultsch 657b1cae9d use fab.hide() and fab.show() - this will animate the process 2018-10-04 16:46:35 +02:00
Daniel Gultsch a34033dea3 run through sendMessage() procedure instead of taking shortcut after returning from TrustKeys
The shortcut didn’t take care of message edits and some other things
2018-10-03 23:23:47 +02:00
Daniel Gultsch 7fa8811f64 refresh ui after device list update only if list has changed 2018-10-03 11:53:02 +02:00
Daniel Gultsch d737ea296e code cleanup 2018-09-27 09:59:05 +02:00
Daniel Gultsch cdcd2f8b04 do not show 'paste as quote' if clip is NULL 2018-09-24 20:33:05 +02:00
Daniel Gultsch 5cf64826ac check if wake lock needs reinit when pressing start/pause in audio player 2018-09-23 11:47:13 +02:00
Daniel Gultsch 1985f6bdec store avatars received over muc presence in contact 2018-09-21 12:27:58 +02:00
Daniel Gultsch 5be64de7be catch conversations.im invite urls directly in fragment 2018-09-18 17:15:52 +02:00
Daniel Gultsch 53cd58c955 fixed text sharing in direct sharing 2018-09-18 17:03:08 +02:00
Daniel Gultsch bd128335d3 do not show media overview in contact/conference details when missing storage permission 2018-09-17 21:24:25 +02:00
Daniel Gultsch c5fcd03489 check omemo keys when attachments are commit instead of before 2018-09-16 15:58:05 +02:00
Daniel Gultsch 6a6287bbd7 commit next message (draft) when input box gets emptied. causes tablet view to update 2018-09-16 15:26:33 +02:00
Daniel Gultsch a6bcd9afe9 show inactive keys if all of them are 2018-09-16 14:08:56 +02:00
Daniel Gultsch b8474941c7 clear parent activities pending view intent before calling startAcitvityForResult() 2018-09-16 10:09:22 +02:00
Daniel Gultsch 7a0c53aa71 introduce media browser activity 2018-09-15 21:10:17 +02:00
Daniel Gultsch 06972ec95c show conversation media in contact/conference details 2018-09-15 19:38:45 +02:00
Daniel Gultsch 63f203c1d1 do some performance optimizations on jid host suggestions. fixes #3174 2018-09-14 14:00:26 +02:00
Daniel Gultsch e0266d0efb fix media preview in tablet mode 2018-09-13 18:48:21 +02:00
Daniel Gultsch c795cdb722 add icon for unknown file while keeping 'file' icon for documents 2018-09-12 22:56:40 +02:00
Daniel Gultsch b15777bd3a make media previews survive rotations 2018-09-12 22:20:19 +02:00
Daniel Gultsch fbc1d242ca allow sharing and attaching of multiple files
fixes #3132
2018-09-12 18:43:17 +02:00
Daniel Gultsch d7cdec002c add more thumbnail icons for various file types 2018-09-12 18:10:37 +02:00
Daniel Gultsch 943f11e1f6 share with uses new preview mechanism 2018-09-12 17:21:32 +02:00
Daniel Gultsch 00c062a0c8 fixed media preview for file types other than images 2018-09-12 14:37:41 +02:00
Daniel Gultsch 3608b0eb44 WIP: preview media before sending them
Note that this commit breaks a few things in that non video/image do not work and sharing media isn’t currently using the new mechanism either
2018-09-11 09:56:32 +02:00
Daniel Gultsch d86f4ce3a6 load contacts and start observer after giving permissions 2018-09-06 15:55:54 +02:00
Daniel Gultsch 676d31f606 initial work toward api 26+
* introduce notification channels
* always use foreground service on 26+
2018-09-05 21:37:12 +02:00
Daniel Gultsch d5b50d1076 fixed user hint in magic create mode 2018-09-05 20:16:45 +02:00
Daniel Gultsch 516b6dcc1f code cleanup for group chat user context menu 2018-09-02 20:54:50 +02:00
Daniel Gultsch ffc5d47091 Merge branch 'start_convervsations_by_long_press' of https://github.com/ChaosKid42/Conversations into ChaosKid42-start_convervsations_by_long_press 2018-09-02 15:02:03 +02:00
Christoph Scholz 3ecb7136c1 start new conversations by long press on avatar 2018-09-01 21:05:31 +02:00
Daniel Gultsch 06f37b0d2b AudioPlayer: disable screen and switch to earpiece when holding phone to ear
Based of initial worked by @harshitbansal05
2018-09-01 18:23:07 +02:00
Daniel Gultsch c05acccf17 catch illegal state not illegal argument on popBackStack() 2018-09-01 10:07:04 +02:00
Daniel Gultsch 201d8ab398 do not show 'delete contact' for phone contacts. do not treat as stranger 2018-08-31 11:04:45 +02:00
Daniel Gultsch b565c20d91 make recording activity not crash if microphone was in use. fixes #3160 2018-08-31 11:04:18 +02:00
Daniel Gultsch 2febbe1b8d show jids from address book in Start Conversation screen if only one account is used 2018-08-30 18:45:22 +02:00
Daniel Gultsch af724a6697 make port field disabled if hostname is empty 2018-08-29 09:33:02 +02:00
Daniel Gultsch c4ca381c7f remove dividers from settings 2018-08-28 17:50:36 +02:00
Daniel Gultsch 9f191f64da do not display 'user left' toast in members only groups. fixes #3144 2018-08-19 22:13:13 +02:00
Daniel Gultsch 53a9930837 show toast if no address book app is installed 2018-07-22 22:42:05 +02:00
Daniel Gultsch 4871263d9c display propper toast after room has been destroyed 2018-07-11 21:33:27 +02:00
Daniel Gultsch 9bdebb81ba handle non participating mucs a bit better 2018-07-09 11:35:30 +02:00