Commit graph

7135 commits

Author SHA1 Message Date
Christian Schneppe
037cd4e95b create share button in backup done notification 2019-07-17 21:10:26 +02:00
Christian Schneppe
fa07274d2d split on first dot when using domain instead of black listed local part 2019-07-17 20:50:03 +02:00
Christian Schneppe
6e93f698a1 muc message corrections only compare bare jid true counterpart
during live messages we only store the bare real jid; on muc catch up we might get the full jid
for that reason we only compare bare jids
2019-07-17 20:46:34 +02:00
Christian Schneppe
1f77d6b8cd prefer attachment in share intent if there is one 2019-07-17 20:45:52 +02:00
Christian Schneppe
f42d144a66 updated retrofit 2019-07-17 20:44:55 +02:00
Christian Schneppe
d52f09b6f4 handle blocking and unblocking of full jids 2019-07-17 20:44:34 +02:00
Christian Schneppe
c88523b1b8 use helper method to close socket 2019-07-17 20:42:54 +02:00
Christian Schneppe
00334edc6f disable muc push on archive instead of leave
leave can be triggered in conference details and doesn’t mean we don’t want pushes
2019-07-03 11:49:46 +02:00
Christian Schneppe
7d55a62328 check if activity is not null before using it to paint send button 2019-07-03 11:38:29 +02:00
Christian Schneppe
e8a4eaf8cd correct webpreview cache paths 2019-07-03 11:37:35 +02:00
Christian Schneppe
f2c4eebaf8 migrate copy ond write list to synchronized hashset for pending mucs 2019-07-01 08:52:56 +02:00
Christian Schneppe
6086d9c45f include remote server errors in errors that should trigger a self ping 2019-07-01 08:47:00 +02:00
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