Commit graph

7273 commits

Author SHA1 Message Date
Christian Schneppe
686c4da2b0 rate limit muc pings / joins. never run two pings at same time 2019-07-01 08:46:00 +02:00
Christian Schneppe
037932dc02 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-07-01 08:42:54 +02:00
Christian Schneppe
66a57e0129 implement FCM push for group chats 2019-07-01 08:35:00 +02:00
Christian Schneppe
226d45a136 code cleanup & small fixes 2019-07-01 08:12:58 +02:00
Christian Schneppe
6d24ce7a18 version 2.2.7 + CHANGELOG 2019-06-27 16:15:55 +02:00
Christian Schneppe
78754e3618 Merge branch 'master' of https://github.com/kriztan/Pix-Art-Messenger 2019-06-27 16:11:49 +02:00
Christian Schneppe
4d5dc70cb3 catch NPE 2019-06-27 16:10:41 +02:00
Christian Schneppe
feb0c66616
Merge pull request #367 from kriztan/l10n_master
New Crowdin translations
2019-06-27 16:02:19 +02:00
Christian Schneppe
c61c968a1f New translations strings.xml (Chinese Simplified) 2019-06-26 07:01:29 +02:00
Christian Schneppe
b09f0fb912 version 2.2.6 + changes 2019-06-25 23:26:35 +02:00
Christian Schneppe
c01b87277c
Merge pull request #365 from kriztan/l10n_master
New Crowdin translations
2019-06-25 23:18:13 +02:00
Christian Schneppe
1d8fa7e99d Revert "Networkstack - let OS decide IPv4 or IPv6 (#267)"
This reverts commit e6a1559790.

If there is IPv6 available but the server doesn't listen to it, the connection will not be established
2019-06-25 21:47:19 +02:00
Christian Schneppe
2e4a341d0f New translations strings.xml (Italian) 2019-06-25 15:32:06 +02:00
Christian Schneppe
73c8feea13 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 optimizations will also suppress pings when
a ping is already in flight to further save traffic.
2019-06-25 12:12:06 +02:00
Christian Schneppe
e09feea27c fix broken updater 2019-06-25 12:01:16 +02:00
Christian Schneppe
fc602a713d show taken time for deleted webpreview cache 2019-06-25 12:00:56 +02:00
Christian Schneppe
a7fe71c691 fix welcome screens
fixes #361
2019-06-25 11:32:37 +02:00
Christian Schneppe
230d85cdb7 Merge branch 'master' of https://github.com/kriztan/Pix-Art-Messenger 2019-06-25 11:05:40 +02:00
Christian Schneppe
6891ca336b fix jingle file transfer
fixes #360
2019-06-25 11:05:25 +02:00
Christian Schneppe
e0dd916deb
Merge pull request #359 from kriztan/l10n_master
New Crowdin translations
2019-06-25 07:08:43 +02:00
Christian Schneppe
424db35712 New translations strings.xml (German) 2019-06-25 02:46:35 +02:00
Christian Schneppe
abda1fee3f New translations strings.xml (German) 2019-06-25 02:31:41 +02:00
Christian Schneppe
39c9924075 New translations strings.xml (Spanish) 2019-06-23 12:05:11 +02:00
Christian Schneppe
a8f97149d9
New Crowdin translations (#358)
* New translations strings.xml (German)

* New translations strings.xml (Portuguese)

* New translations strings.xml (German)

* New translations strings.xml (Portuguese, Brazilian)
2019-06-23 09:54:51 +02:00
Christian Schneppe
c284774545 New translations strings.xml (Portuguese, Brazilian) 2019-06-23 09:53:24 +02:00
Christian Schneppe
ff6f4649e4 New translations strings.xml (German) 2019-06-23 09:53:03 +02:00
Christian Schneppe
47e47fa078 version 2.2.5 + changes 2019-06-23 09:50:23 +02:00
Christian Schneppe
a969ccf67f make backup compatible to Conversations (only works for Android >= 8) 2019-06-23 09:36:50 +02:00
Christian Schneppe
ce16d024a6 Revert "BackupExport format like Conversations (#342)"
This patch is not compatible with Android SDK < 26 (Android 8 / OREO)
This reverts commit 514b63f486.
2019-06-23 09:31:51 +02:00
Christian Schneppe
596059538f Merge branch 'master' of https://github.com/kriztan/Pix-Art-Messenger 2019-06-23 09:30:04 +02:00
Christian Schneppe
63a2b3f151 catch NPE 2019-06-23 09:29:47 +02:00
Christian Schneppe
7741a3d261 New translations strings.xml (Portuguese) 2019-06-22 22:22:03 +02:00
Christian Schneppe
462e44bebf New translations strings.xml (German) 2019-06-22 22:21:38 +02:00
Christian Schneppe
392b7133c6
Merge pull request #357 from esu23/fix-tipo
Fixed typo
2019-06-22 22:11:50 +02:00
esu23
0747af253c Fixed typo 2019-06-22 22:07:57 +02:00
Christian Schneppe
d1ae7c6abc version 2.2.4 + changes 2019-06-22 21:19:33 +02:00
Christian Schneppe
ca334f9e5f
New Crowdin translations (#356) 2019-06-22 21:17:58 +02:00
Christian Schneppe
9ab0d0e176
New Crowdin translations (#353) 2019-06-22 21:15:42 +02:00
Christian Schneppe
6c166d51fd
fix typo 2019-06-22 19:52:13 +02:00
genofire
514b63f486 BackupExport format like Conversations (#342)
This makes it possible to import/export backup files from/to Conversations
2019-06-22 17:35:49 +02:00
genofire
4726fcfd46 fix gitlab-ci build (#355) 2019-06-22 17:33:32 +02:00
Christian Schneppe
e3603f7c41 changed string to generated password dialog in MagicCreateActivity
fixes #296
2019-06-22 17:21:25 +02:00
Christian Schneppe
0d9f3ae619 change behavior of unencrypted chats warning 2019-06-22 17:10:58 +02:00
Christian Schneppe
9e3a701cb0 performance improvement of message expiry 2019-06-22 15:38:54 +02:00
Christian Schneppe
c71aa059f9 shedule webpreview cache deletion 2019-06-21 21:40:16 +02:00
Christian Schneppe
81c0944245 show own account in chatlist/contacts/conferences if you are in multi account mode 2019-06-20 22:30:21 +02:00
Christian Schneppe
53f93ae996 ping muc after receiving not-acceptable error 2019-06-20 20:55:33 +02:00
Christian Schneppe
0f6623888a attempt to keep messages waiting until muc is connected 2019-06-20 20:54:50 +02:00
Christian Schneppe
f09d784928 small improvement of welcome screen 2019-06-18 19:07:47 +02:00
Christian Schneppe
fe4c5fabf7 self ping (xep-0410) after receiving invite to muc 2019-06-18 18:11:08 +02:00