Commit Graph

6031 Commits

Author SHA1 Message Date
Daniel Gultsch 49224335fc attempt to unregister when receiving push for channel no longer joined
when receiving a FCM push message for a channel the user is no longer in (this can happen when the disable command failed) an attempt will be made to explicitly unregister from the app server (which in turn will then send item-not-found on next push)
2019-06-26 17:40:12 +02:00
Daniel Gultsch 7809af9b57 implement FCM push for group chats 2019-06-25 18:15:51 +02:00
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
Martin/Geno b65e14072e
Merge tag '2.5.3' into develop 2019-06-22 09:49:15 +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 e432710a3f version bump to 2.5.3 + changelog 2019-06-18 11:05:46 +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
Martin/Geno fe124e4789
grey to black themen 2019-06-15 18:46:08 +02:00
Martin/Geno d0fd1f0e30
remove dns resolver cache 2019-06-15 18:46:07 +02:00
Martin/Geno 9a49c7c3c6 Drop own implementation of DNS-Server selection 2019-06-04 10:26:21 +02:00
Daniel Gultsch 997f922401 put geo uri in attachment preview when shared 2019-05-28 22:32:42 +02:00
Daniel Gultsch b7781f1e0e add changelog for 2.5.2 release 2019-05-28 22:11:58 +02:00
Daniel Gultsch 16ce476bbc show negative max files size (unknown/unlimited) simply as available 2019-05-27 18:32:04 +02:00
Martin/Geno 14d4e6aec8
for 2.5.2 Merge branch 'master' into develop 2019-05-25 00:43:16 +02:00
Daniel Gultsch 631d9c846f version bump to 2.5.2 2019-05-22 23:59:40 +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 c7bd635996 pulled translations from transifex 2019-05-22 17:32:14 +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
Licaon_Kter 1db07b84f3 Readme typo (#3462) 2019-05-20 07:26:17 +00:00
Daniel Gultsch 708476cee8 explain omemo and backups. fixes #3454 2019-05-10 19:57:54 +02:00
Martin/Geno cc478f744b
[rebrand] fix logo background 2019-05-10 13:09:08 +02:00
Martin/Geno 28c01aea8e
build.gradle: update to f-droid version with targetSdk 25
We go back to targetSdk 25 so users can disable
 the foreground service (and annoying notification) if they choose
2019-05-09 18:04:30 +02:00
Martin/Geno 7ac752fac3
[metadata] remove fee 2019-05-09 15:33:23 +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
Martin/Geno 66d4c49fd3
[DOC] fix README 2019-05-07 20:08:13 +02:00
Martin/Geno 35b32a2f65
[CI] move build fork to ci 2019-05-07 18:54:48 +02:00
Martin/Geno 0754d6d01a
[metadata] add ipv4 hardcoded 'preferred' 2019-05-04 17:49:10 +02:00
Martin/Geno 9f3cbc28c4
fix translation: conversations.im to chat.sum7.eu 2019-05-04 17:44:36 +02:00
Martin/Geno 69b92f264a
for 2.5.1 Merge branch 'master' into develop 2019-05-04 14:41:34 +02:00
Daniel Gultsch 2869ed44a6 fixed typo in changelog 2019-05-03 11:58:53 +02:00
Daniel Gultsch 43254663fb version bump to 2.5.1 + changelog 2019-05-03 10:49:46 +02:00
Daniel Gultsch 8736db3bc4 pulled translations from transifex 2019-05-03 10:48:51 +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