Daniel Gultsch
e467fe341e
implement client support for muc push
...
Staying connected to a MUC room hosted on a remote server can be challenging.
If a server reboots it will usually send a shut down notification to all
participants. However even if a client knows that a server was shut down it
doesn’t know when it comes up again. In some corner cases that shut down
notification might not even be delivered successfully leaving the client in a
state where it thinks it is connected but it really isn’t.
The possible work around implemented in this commit is to register the clients
full JID (user@domain.tld/Conversations.r4nd) as an App Server according to
XEP-0357 with the room. (Conversations checks for the push:0 namespace on the
room.)
After cycling through a reboot the first message send to a room will trigger
pubsub notifications to each registered full JID. This event will be used to
trigger a XEP-0410 ping and if necessary a subsequent rejoin of the MUC.
If the resource has become unavailable during down time of the MUC server the
user’s server will respond with an IQ error which in turn leads to the MUC
server disabling that push target.
Leaving a MUC will send a `disable` command. If sending that disable command
failed for some reason (network outage) and the client receives a pubsub
notification for a room it is no longer joined in it will respond with an
item-not-found IQ error which also disables subsequent pushes from the server.
Note: We 0410-ping before a join to avoid unnecessary full joins which can be
quite costly. Further client side optimazations will also surpress pings when
a ping is already in flight to further save traffic.
2019-06-24 18:16:06 +02:00
Daniel Gultsch
b6d059ed89
ping muc after receiving not-acceptable error
2019-06-18 18:40:16 +02:00
Daniel Gultsch
17c8bf3452
attempt to keep messages waiting until muc is connected
2019-06-18 18:09:44 +02:00
Daniel Gultsch
6862b60c3f
self ping (xep-0410) after receiving invite to muc
2019-06-18 13:20:24 +02:00
Daniel Gultsch
4c3cd89fe7
syntax clean up
2019-06-17 17:37:02 +02:00
Daniel Gultsch
782d889cc5
disallow subsequent session-accept
2019-06-17 09:51:49 +02:00
Daniel Gultsch
c1bdda0a9b
reenable http upload that got disabled in last commit
2019-06-17 08:33:19 +02:00
Daniel Gultsch
9fc1ead74f
use ibb if other party doesn’t annouce s5b feature
2019-06-16 22:57:10 +02:00
Daniel Gultsch
fe6c981ae2
accept direct ibb jingle offers
2019-06-16 21:23:18 +02:00
Daniel Gultsch
1cfba86aff
don’t crash when attempting to publish bookmarks while offline
2019-06-16 18:05:06 +02:00
Daniel Gultsch
52c0bf73a0
handle some rare npe
2019-06-16 18:04:43 +02:00
Daniel Gultsch
2fbd9e6744
MessageStyle notifications replace car extender
2019-06-16 16:02:22 +02:00
Daniel Gultsch
953307ca30
use socks instead of http proxy for http upload
...
http proxy doesn’t seem to work with onion v3
2019-06-16 15:06:34 +02:00
Daniel Gultsch
997f922401
put geo uri in attachment preview when shared
2019-05-28 22:32:42 +02:00
Daniel Gultsch
16ce476bbc
show negative max files size (unknown/unlimited) simply as available
2019-05-27 18:32:04 +02:00
Daniel Gultsch
9a8cc5b2e7
fixed some NPE
2019-05-22 23:58:39 +02:00
Daniel Gultsch
e5378df39c
synchronize around attributes in toContentValues()
2019-05-22 23:58:08 +02:00
Daniel Gultsch
10653df164
show error messages in text layout not edittext
2019-05-22 17:31:11 +02:00
Daniel Gultsch
c965049605
handle invalid canditates in jingle
2019-05-22 17:30:51 +02:00
Daniel Gultsch
132f81df23
double check that activity is not null in updateSend button
2019-05-22 17:30:04 +02:00
Daniel Gultsch
a909e1a7cf
fixed NPE in channel discovery after race to create menu
2019-05-22 17:29:27 +02:00
Daniel Gultsch
5bedde7913
run postDelayed in background thread
2019-05-08 14:11:28 +02:00
Daniel Gultsch
6785d8c69f
set volume control channel to media volume / default. fixes #3451
2019-05-08 14:11:06 +02:00
Daniel Gultsch
ba327d8512
set own omemo devices to inactive after 14 days of inactivity; was 7 days
2019-05-03 10:48:33 +02:00
Daniel Gultsch
82dcae59e3
added language tag in channel search results
2019-05-02 20:09:43 +02:00
Daniel Gultsch
818f2ab61c
fixed rare NPE cause by race
2019-05-02 20:09:16 +02:00
Daniel Gultsch
61604dedea
jingle: send canditate error before fallback
2019-04-30 11:23:15 +02:00
Daniel Gultsch
73d66fd703
go forward through cursor in message restore
...
We have seen some weird CursorIndexNotFoundException that we were unable to reproduce.
We assume that going forward (moveToNext()) through the cursor instead of (moveToPrevious() fixes that issue
2019-04-30 10:45:28 +02:00
af8a524db1
137d48810d
Make use of Namespace.REGISTER constant ( #3446 )
2019-04-29 07:51:46 +00:00
ialokim
15791b732c
fix export error for non-unicode numbers ( #3444 )
2019-04-28 10:46:49 +00:00
Daniel Gultsch
7c35f28633
do not synchronize twice when adding status and date bubbles
2019-04-27 15:24:37 +02:00
Daniel Gultsch
bcab77a044
wait with presence selection until attachment commit
2019-04-27 14:41:43 +02:00
Daniel Gultsch
b2ea91909b
introduced type private_file_message to handle attachments in PMs. fixes #3372
2019-04-27 11:46:43 +02:00
Daniel Gultsch
b55d4bc62f
do not jump out of whispher mode when selecting attach
2019-04-26 17:53:00 +02:00
Daniel Gultsch
dc70b7e28a
add bookmark when clicking on channel search result
2019-04-26 12:26:49 +02:00
Daniel Gultsch
76fb17c972
add contact dialog: warn on suspicious addresses
2019-04-26 12:05:52 +02:00
Daniel Gultsch
d2c9ce7bf0
store correcting message in db
2019-04-26 11:18:16 +02:00
Daniel Gultsch
8a1a9f4f55
put PM hint above edittext. fixes #3432
2019-04-26 10:23:26 +02:00
Daniel Gultsch
182a81e3ef
only show opened FAB when some accounts are enabled
2019-04-26 09:30:38 +02:00
Daniel Gultsch
6704db21fb
added Tor support to channel search
2019-04-25 21:10:50 +02:00
Daniel Gultsch
9db1c10f45
open FAB when no contacts or bookmarks are found
2019-04-25 19:52:42 +02:00
Daniel Gultsch
7b61bb9841
rework welcome screens to split use existing account / create new
...
closes #3440
2019-04-25 19:01:34 +02:00
Daniel Gultsch
a04b7a1c0f
keyboard event callbacks shoud run on ui thread. fixes #3441
2019-04-25 12:27:38 +02:00
Daniel Gultsch
ff84ee6964
cache channel search results
2019-04-24 13:25:54 +02:00
Daniel Gultsch
2fa687b8ae
refactor muc search to use http
2019-04-22 13:00:45 +02:00
Daniel Gultsch
a0f88aa9b4
implement channel discovery over jabber.search.network
2019-04-22 10:42:21 +02:00
Daniel Gultsch
7a825231fb
run keyboard listeners on background executor
2019-04-17 18:25:21 +02:00
Daniel Gultsch
39bc067405
execute some dismiss error notification and reset error in background
2019-04-17 12:49:36 +02:00
Daniel Gultsch
d04e2e99f3
use mediated invite on reinvite if user is not member
2019-04-11 08:57:20 +02:00
Daniel Gultsch
bf7d50692c
use styled warning for message error. fixes #3428
2019-04-08 16:32:41 +02:00
Daniel Gultsch
d390345073
show max file upload size in server info
2019-03-23 07:27:03 +01:00
Daniel Gultsch
74301831d2
do sent/received correct based on true counterpart introduces in f406631512
only for type=groupchat
2019-03-15 12:46:27 +01:00
Daniel Gultsch
46596e8652
fix backup creation for older installations
...
if your Conversations installation is older than December 2016 (version 1.15.0) the backup would
include historic data that a current installation is not able to read on restore.
This commits excludes that data from the backup.
If you had problems importing the backup you need to create a new backup after this patch
2019-03-07 09:08:37 +01:00
Daniel Gultsch
c7dea9dded
fixed security exception when attempting to display image in notification
2019-03-03 08:32:54 +01:00
Daniel Gultsch
875f0b9943
find activity even if wrapped in context wrapper. fixes #3396
2019-03-03 08:31:46 +01:00
Daniel Gultsch
f406631512
double check that muc message is ours if true jid is known
2019-03-02 08:36:36 +01:00
Daniel Gultsch
a29a5fd491
copy intent extras in eventreceiver
2019-02-27 14:16:26 +01:00
Daniel Gultsch
24a51d8715
do null check before splitting error message for processing
2019-02-23 10:24:08 +01:00
Daniel Gultsch
d95b904b5b
show file too large instead of generic delivery failed
2019-02-20 21:44:06 +01:00
Daniel Gultsch
3fabb52293
after switching from forced foreground to foreground notification needs update
2019-02-16 11:58:16 +01:00
Daniel Gultsch
905d2ab432
explicitly set profile+level for encoder
...
some modern Androids (namely my Xiaomi Mi A1 after the update to Andorid 9) seem to require that
2019-02-16 11:40:51 +01:00
Daniel Gultsch
f26a57ced4
fixed regression of search hint not updating in StartConversation screen
2019-02-15 14:07:39 +01:00
Daniel Gultsch
6b5e81df49
allow filtering in participant view. fixes #3371
2019-02-15 14:00:42 +01:00
Daniel Gultsch
5f543e8314
show notification when backup is done
2019-02-15 13:17:49 +01:00
Daniel Gultsch
d79768e923
do not show 'manage permissions' submenu when only 'remove from room' is visible
2019-02-15 09:57:58 +01:00
Daniel Gultsch
bebce313b2
print available stream features / mechanisms on incompat server
2019-02-09 20:21:29 +01:00
Daniel Gultsch
ef09b0ab1a
use the term channel in destroy dialog
2019-02-08 13:46:33 +01:00
Daniel Gultsch
310362130f
catch activity not found when trying to open contact app
2019-02-07 21:39:30 +01:00
Daniel Gultsch
bfaf10aa72
brought back 'moderated' config in advanced mode
2019-02-07 18:11:21 +01:00
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
179beb15e0
fix xmpp uri links that have a aditional chars after join
...
for example xmpp:foo@bar.tld?join,
2019-01-31 13:59:41 +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
b30fb46c85
make sure that http upload/download is not startetd multiple times
2019-01-28 10:39:01 +01:00
Daniel Gultsch
0898783309
schedule another ping 30s after connectivity_change
2019-01-27 20:54:45 +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
18807305c1
do not require starttls when connecting over to .onion domain
2019-01-25 08:48:46 +01:00
Daniel Gultsch
8fbe445c99
scan all files in case some files were previously marked as deleted by accident
2019-01-24 15:03:58 +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
a32bb652f7
always show number of connected accounts in foreground notification. fixes #3352
2019-01-23 17:07:14 +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
a0be2dc54f
updated readme
2019-01-21 11:55:52 +01:00
Daniel Gultsch
83c3258dd7
properly jump out of connection loop on state changing errors
2019-01-19 11:47:21 +01:00
Daniel Gultsch
dcdf340a41
normalize nicks before getting them from bookmarks or pep
2019-01-19 11:42:57 +01:00
Daniel Gultsch
477f2d34f3
use clear top flag in shortcut intent
2019-01-18 12:28:35 +01:00
Daniel Gultsch
a53774bc6d
resend presence to muc avatar update. fixes #3175
2019-01-17 17:55:47 +01:00
Daniel Gultsch
e714d7cd29
null checks when deleting old files
...
fixes #3345
2019-01-17 11:56:34 +01:00
Daniel Gultsch
caf5fcad88
fixed enabled accounts check in onCreate
2019-01-13 22:18:32 +01:00