Commit graph

15221 commits

Author SHA1 Message Date
SpiritCroc
0d43fc6861 Ensure proper double linking of TimelineChunks
We need both directions so getOffsetIndex() produces correct results in
all cases.

Change-Id: Icbb3810c664febba976b81ae882a6581dc0f6056
2022-03-17 11:10:01 +01:00
SpiritCroc
b982841ed5 Add read event tracking debugging
Change-Id: If9cc30f32af7bcadda9df6b04ad89ae248166da8
2022-03-17 10:58:39 +01:00
SpiritCroc
57fee29645 Revert "Reduce time required before updating read marker"
This reverts commit 922b62f9f5.

Change-Id: I32fed90bdfa04d5e3dd7f222a330f84f3476d805
2022-03-17 10:58:35 +01:00
SpiritCroc
6b060bf1bb Increase toolbar subtitle text size a little
Change-Id: I3990d59a431fb3b35520a8862e0ff911f6cb4011
2022-03-16 15:58:54 +01:00
SpiritCroc
922b62f9f5 Reduce time required before updating read marker
Change-Id: Ia242b3e031deac313e7db161ccf7dae64ed66e7c
2022-03-16 15:40:03 +01:00
SpiritCroc
d92ce97f84 Open at unread: Do not show loading animation if already reached end
Change-Id: I90b0a92cddb779651983f69871fa1942f2f45785
2022-03-16 15:39:16 +01:00
SpiritCroc
581c0ffcb0 Fix endless loading timeline due to conflicting chunks
Change-Id: I46918ed17b0bd5b2ac6797bfd2a9e3ffa42f14b8
2022-03-16 14:33:28 +01:00
SpiritCroc
da43865733 [TMP] More ReadMarker debugging
Change-Id: I1defffc997864db74e15fe6b06645adeed7b67fe
2022-03-16 09:27:48 +01:00
SpiritCroc
d3c69a71a2 Fix remembering section expand-status in some cases
Change-Id: If5f08cb895874fddb2621632f970f0179b026439
2022-03-15 20:50:17 +01:00
SpiritCroc
cd1449d9bb RoomListFragment: Use proper way to observe space changes
Change-Id: I30d65c3e653eb82f4095ed538aec9a4c8c2de337
2022-03-15 20:32:01 +01:00
SpiritCroc
31c01c98de Possibility to hide start call buttons from the toolbar
Change-Id: Ica35e0dfd6b82beb90754dd5997fa0d756d816a5
2022-03-15 20:20:21 +01:00
SpiritCroc
5bdb6a5dfd Setting whether chat notifications should repeatedly alert
Closes https://github.com/SchildiChat/SchildiChat-android/issues/111

Change-Id: I4c963caabdb10fa601799d3cb3fed2ad96d3d54c
2022-03-15 20:07:35 +01:00
SpiritCroc
4bb246ffe1 Fix local echos not being shown when re-opening rooms
Change-Id: Ib07f290028b7e97b64f3712c2cac01b5038f8dc8
2022-03-15 19:43:07 +01:00
SpiritCroc
4d8cedf6e5 Annoy-developer-toast: don't show for normal local echos
Change-Id: Ibec75423c5f7f7d4145e48f2da36e2b02f0caf7c
2022-03-15 16:11:22 +01:00
SpiritCroc
56cae372b4 Add Schildi-dbg settings
To control more invasive debugging

Change-Id: I7ee2980388db8999a76992ee7fffc70d8383a283
2022-03-15 11:19:53 +01:00
SpiritCroc
c214c2233f [TMP] Update timeline debugging
And clean up some debugging that's probably not needed anymore

Change-Id: I3b154280487f02479f7c40b543da43ca39e9e2e3
2022-03-15 10:57:34 +01:00
SpiritCroc
f8971a9ba1 Merge remote-tracking branch 'weblate/sc' into sc
Change-Id: I4f47d43a3750c16cebee1d67348b378ea4416631
2022-03-15 09:04:26 +01:00
SpiritCroc
03863a9585 Update FEATURES.md
Change-Id: I0d3678219babe3e53e4af296b564d9de29615904
2022-03-15 09:01:07 +01:00
Linerly
e442782c7a Translated using Weblate (Indonesian)
Currently translated at 100.0% (129 of 129 strings)

Translation: SchildiChat/SchildiChat-android
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/schildichat-android/id/
2022-03-15 08:59:35 +01:00
waclaw66
1bcba4b135 Translated using Weblate (Czech)
Currently translated at 100.0% (129 of 129 strings)

Translation: SchildiChat/SchildiChat-android
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/schildichat-android/cs/
2022-03-15 08:59:35 +01:00
Linerly
83fc1d2130 Translated using Weblate (Indonesian)
Currently translated at 100.0% (122 of 122 strings)

Translation: SchildiChat/SchildiChat-android
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/schildichat-android/id/
2022-03-15 08:59:35 +01:00
waclaw66
cf23176ae0 Translated using Weblate (Czech)
Currently translated at 100.0% (122 of 122 strings)

Translation: SchildiChat/SchildiChat-android
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/schildichat-android/cs/
2022-03-15 08:59:35 +01:00
mezysinc
a4aab40c54 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (121 of 121 strings)

Translation: SchildiChat/SchildiChat-android
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/schildichat-android/pt_BR/
2022-03-15 08:59:35 +01:00
Allan Nordhøy
784eed8ce3 Translated using Weblate (Norwegian Bokmål)
Currently translated at 48.7% (59 of 121 strings)

Translation: SchildiChat/SchildiChat-android
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/schildichat-android/nb_NO/
2022-03-15 08:59:35 +01:00
SpiritCroc
4009277193 Update FEATURES.md
Change-Id: I0d3678219babe3e53e4af296b564d9de29615904
2022-03-15 08:59:04 +01:00
SpiritCroc
b9b5bd6519 Fix SC bubbles crash for chats with verification-request
Change-Id: Ie5527a5bf5d89b8421759f9acab3c426a8a09cfa
2022-03-14 15:57:01 +01:00
SpiritCroc
ead93dc8ad Don't switch space on clicking a notification
Change-Id: Ieadd6b900152d0ebf2ea7cc97d9e06afccf50439
2022-03-13 14:33:08 +01:00
SpiritCroc
d0909c1790 [TMP] Show inconsistencies toast for developers investigating this
Change-Id: I06165bddcae980db60750ef77925c7b65704f3a2
2022-03-12 10:38:02 +01:00
SpiritCroc
647dd4398e Fix modifying the wrong events in TimelineChunk
I was observing cases where builtEvents[modificationIndex] was not
having the same eventId as the udpatedEntity in.
In particular, I observed both cases that
- there was no item in the list yet with the same eventId as the updated
  one
- there was an item with the same eventId already in the list, but at a
  different position.

Whenever this happened, the timeline would render missing, duplicated,
or swapped messages in the timeline.

Instead of relying on the modificationIndex to be the same for both the
change set and builtEvents, look up the proper index by eventId.

Change-Id: Ic03bdcc8210ec87b786795848f31e9085096b903
2022-03-12 09:32:25 +01:00
SpiritCroc
8d04a48157 Fix ChunkEntity.isMoreRecentThan() if both chunks linked to last forward
Imagine scenario:

[this] -> [chunkToCheck] -> [lastForwardChunk]

Then, both `isLastForward` checks will not return, and also the `chunkToCheck.doesNextChunksVerifyCondition { it == this }` will return false.
Since both chunks are connected to the last forward chunk, `isMoreRecent()` will still return `true`, which is wrong in this case.
So do not only check if chunkToCheck has this as any of the next chunks, but also the other way round.

Change-Id: I98727d85837e9b38a42297568df82f957b3a2dca
2022-03-11 11:29:43 +01:00
SpiritCroc
24133ba7b5 isReadMarkerMoreRecent(): use helper to properly compare chunks
Change-Id: I878b8145d3a9c85ea815f369e5d8f810343c8f62
2022-03-11 11:29:39 +01:00
SpiritCroc
6aabb38c3b [TMP] Update some readmarker debugging
Change-Id: Ia1de156f39622d90cc1433f0b16776bd00e2a462
2022-03-11 10:04:40 +01:00
SpiritCroc
12e4853c59 [TMP] More missing message debugging
Change-Id: Ia6ad08fa6a51365ba6f4e5a880f9ce804f3026c5
2022-03-11 08:50:17 +01:00
SpiritCroc
38cfd2ab2f Restore pre-v1.4.4 toolbar
New one has borked presence indicator, and overall doesn't look as nice
as the old one, including the new typing indicator, imo.

Change-Id: I9e1fa0f6677905d051f0d9557f8a79b3c4c86e2b
2022-03-10 20:06:32 +01:00
Tiago Loureiro
9cb64f0592 Fix huge picture crash on timeline
Change-Id: Ie9e4b68c8525a033b06e7f500e86aab73a718f40
2022-03-10 17:43:13 +01:00
SpiritCroc
5b07dbbeb9 Fix possible class cast exception in url preview
Change-Id: Ibab1f314591abca7669f89df51dade70ddab383f
2022-03-10 17:20:11 +01:00
SpiritCroc
10c77f2b59 Don't reserve space for typing view until somebody is typing
Once we show it, keep it, to not make the timeline jump around too much.

Change-Id: I8f863d8d21f3b06ff86f62615d8e6aefe81bde2e
2022-03-10 13:42:48 +01:00
SpiritCroc
27fd6a2819 Automatic SchildiChat string correction
Change-Id: I728d41658c2b1148b40644e28b67016f5e420c70
2022-03-10 13:26:54 +01:00
SpiritCroc
db3891b4c3 Automatic upstream merge postprocessing
Change-Id: I60e8f659740659d74f1d918525abff353d5f2cfc
2022-03-10 13:26:53 +01:00
SpiritCroc
8f93b55b59 Automatic color correction
Change-Id: I0ac188dce1148b8defeaffd70062691a8ee2e9da
2022-03-10 13:26:52 +01:00
SpiritCroc
f5afdefe2f Merge tag 'v1.4.4' into sc
Change-Id: Ibfb35ec30a51abebb652044719417f62c8a6be50

Conflicts:
	library/ui-styles/src/main/res/values/dimens.xml
	matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/sync/SyncTask.kt
	vector/src/gplay/java/im/vector/app/gplay/push/fcm/VectorFirebaseMessagingService.kt
	vector/src/main/AndroidManifest.xml
	vector/src/main/java/im/vector/app/features/home/HomeDetailFragment.kt
	vector/src/main/java/im/vector/app/features/home/room/detail/RoomDetailViewState.kt
	vector/src/main/java/im/vector/app/features/rageshake/BugReporter.kt
	vector/src/main/res/drawable/bg_unread_notification.xml
	vector/src/main/res/drawable/ic_add_reaction_small.xml
	vector/src/main/res/layout/item_room.xml
	vector/src/main/res/layout/item_timeline_event_text_message_stub.xml
	vector/src/main/res/xml/vector_settings_preferences.xml
2022-03-10 13:26:09 +01:00
SpiritCroc
7437d621b2 [TMP] Automatic upstream merge preparation
Change-Id: I0d2270e32eca2d08e9fb1479cf3081af92d2b796
2022-03-10 13:09:24 +01:00
SpiritCroc
373d88885e Automatic revert to unchanged upstream strings, pt.1
Change-Id: I1c7b6a48f886c7c4664ebf81252f84c1aaa5930b
2022-03-10 13:09:23 +01:00
SpiritCroc
98ec8b4842 FooteredTextView: Fix reserving footer width when forcing footer below
Change-Id: Iea91960f6bcbdc0af4956a65a04d926b98f0d580
2022-03-10 13:08:18 +01:00
SpiritCroc
b3d9ddbeca Do not cut italic text, v2
Different implementaion than the one which got lost during a recent
upstream merge

Change-Id: Ic4b0474bd95a9746cfecc8aff8562c330e296b5a
2022-03-10 12:48:17 +01:00
SpiritCroc
7bfd3c8dca [TMP] Add some debugging to detect timeline inconsistencies
Note: may affect performance a little when loading the timeline, so
better revert when we are confident we have fixed the issue.

Change-Id: Ic4d31e47948984371a02ce51af7a8d56cb120234
2022-03-10 12:36:00 +01:00
SpiritCroc
a132ee22cb Fix gif autoplay after merge
Change-Id: Ia6f1718284903108aed22e246d2f594741e8511f
2022-03-10 08:24:15 +01:00
Adam Brown
9e8067dd19
Merge pull request #5484 from vector-im/feature/aris/fix_realm_crash_1_4_4
Fix realm crash on v1.4.4
2022-03-09 18:55:12 +00:00
ariskotsomitopoulos
92c1bc944d Fix realm crash on v1.4.4 2022-03-09 20:03:42 +02:00
SpiritCroc
2498da3631 Fix updating unread marker if not to latest chunk
SetReadMarkerTask was not updating the read marker when both the old and
the new fully read eventId weren't in the last chunk, even when the new
one was after the first one.

Change-Id: I175b335cf90328f676238ca23e45aa0f91b269c9
2022-03-09 18:07:38 +01:00