Commit graph

7709 commits

Author SHA1 Message Date
SpiritCroc
c3a6e3bd9b Rework counting of unread chats
Avoid counting chats twice that are actually unread and additionally
manually marked as unread.
Also fix some corner cases.

Change-Id: I0bc8a3bcdb8b658618b627648eec34305e66082b
2021-11-09 12:34:54 +01:00
SpiritCroc
19e065cbea Prefer sorting subspaces alphabetically over roomId
Change-Id: I75217ca1cc27a30d5c4d62da0e4bc277e963073e
2021-11-09 12:34:46 +01:00
SpiritCroc
bd6814325b Increment version
Change-Id: Ibbb95ad01f2fbc96d1941de8db57c754c059ea7f
2021-11-06 09:24:27 +01:00
joshua
aa8a91d6fb Translated using Weblate (Swedish)
Currently translated at 92.3% (109 of 118 strings)

Translation: SchildiChat/SchildiChat-android
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/schildichat-android/sv/
2021-11-05 09:11:17 +01:00
inkhorn
5a07b2ad0d Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (118 of 118 strings)

Translation: SchildiChat/SchildiChat-android
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/schildichat-android/pt_BR/
2021-11-05 09:11:17 +01:00
waclaw66
c947c6c85a Translated using Weblate (Czech)
Currently translated at 100.0% (118 of 118 strings)

Translation: SchildiChat/SchildiChat-android
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/schildichat-android/cs/
2021-11-05 09:11:17 +01:00
inkhorn
fa00388807 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (117 of 117 strings)

Translation: SchildiChat/SchildiChat-android
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/schildichat-android/pt_BR/
2021-11-05 09:11:17 +01:00
SpiritCroc
30cd55d260 Allow changing readmarker HasNoUnread -> HasUnread
When loading chats at the last read position, it can very well happen
that we load the event referenced by the unread marker at position 0
first, until more messages load after it. Accordingly, we can not assume
we are done here.

Change-Id: If4208315d50f4bd036b0b0638e9364a49b68561a
2021-11-04 19:51:31 +01:00
SpiritCroc
d2a6360a7a Rageshake: include local time of bug report
Yes, we can get it from the logs... but this could speed things up.

Change-Id: If85c3add2437838f7a0327e97a51dbad6c93712f
2021-11-04 19:30:19 +01:00
SpiritCroc
ca7a019266 [TMP] Again more readmarker debug
Change-Id: I76bd94ff44308a252c4355fc5d7418191b307370
2021-11-02 09:35:11 +01:00
SpiritCroc
37d0b5098f Revert "[TEST] Initial force scroll only once"
Keep in mind that the position can change while we insert events, so we
want to keep it up-to-date.

This reverts commit 22cdb6544d.

Change-Id: I43f391c14aeb087c7d3cc71c5c6af3fbabe0f835
2021-11-02 09:09:53 +01:00
SpiritCroc
6f58df75f3 [TMP] BetterLinearLayoutManager: debug initial anchor
Change-Id: I81e5df345c14ab345a2fd1f7494e7f680d6889d4
2021-11-01 10:40:28 +01:00
SpiritCroc
e6a7e05a92 [TMP] Debug read marker placement
Change-Id: Ib7a400bf4c5e1357f5b8f2e0cc8333bcf1306d50
2021-10-31 11:18:10 +01:00
SpiritCroc
6a96b50b84 Improve room previews for RTL/LTR mixes of name and message
Change-Id: Ic8634ca41cef1c052e8f5769cf40f08e7e4e140c
2021-10-31 11:02:54 +01:00
SpiritCroc
983b71dc4b Some small public room and presence icon theme fixes
Change-Id: I188fc5943755dc10db55701415d03b84c34e5ffe
2021-10-31 10:13:11 +01:00
SpiritCroc
9b88c608c2 Show all rooms of spaces in home by default
Change-Id: I59beb29283e90665a4128193edc407146ecf5672
2021-10-30 14:21:21 +02:00
SpiritCroc
998018032a BetterLinearLayoutManager: Fix anchor view to preferred position
Change-Id: Ib6b960603a25ffc4920067227a821debdb04973e
2021-10-29 18:37:00 +02:00
SpiritCroc
57d3f3bc68 Avoid race condition with TextFuture when setting message text
Change-Id: I7de99faf565b73a67aceeaf646fec6e6d56123c8
2021-10-29 18:36:41 +02:00
SpiritCroc
bbb2a631cf [TMP] Debug read marker calculation
Change-Id: Id50e0731d12fc861acab990be0d5fed6d456658e
2021-10-29 10:22:58 +02:00
SpiritCroc
22cdb6544d [TEST] Initial force scroll only once
Change-Id: I6f5580be02fbdb13b56c5a180c124076bddcd52a
2021-10-27 18:24:45 +02:00
SpiritCroc
1fdb6923f5 Set preferred anchor position from force scroll
Change-Id: I36c071c9caf8aa0ac913aea6211fd278690dd330
2021-10-27 18:21:39 +02:00
SpiritCroc
395b146500 Set preferred anchor placement in chat view
Change-Id: Ie0af62d196e88f7728b3e82e79366940afd84ff2
2021-10-27 17:33:46 +02:00
SpiritCroc
eddd0a185e Allow to better control anchors in BetterLinearLayoutManager
Change-Id: Ic91a2cfbf53e5f59f395467bd020b970626d2a55
2021-10-27 17:30:55 +02:00
SpiritCroc
2d63dbbf12 Use BetterLinearLayoutManager for room detail view
Epoxy wants this to be an androidx LinearLayoutManager, or it will crash
on scroll with:

E AndroidRuntime: java.lang.ClassCastException: im.vector.app.features.home.room.detail.RoomDetailFragment$setupRecyclerView$1 cannot be cast to androidx.recyclerview.widget.LinearLayoutManager
E AndroidRuntime: 	at com.airbnb.epoxy.preload.EpoxyPreloader.onScrolled(EpoxyPreloader.kt:107)
E AndroidRuntime: 	at androidx.recyclerview.widget.RecyclerView.dispatchOnScrolled(RecyclerView.java:5347)
E AndroidRuntime: 	at androidx.recyclerview.widget.RecyclerView.scrollByInternal(RecyclerView.java:2102)
E AndroidRuntime: 	at androidx.recyclerview.widget.RecyclerView.onTouchEvent(RecyclerView.java:3531)
E AndroidRuntime: 	at android.view.View.dispatchTouchEvent(View.java:14309)
[...]

Change-Id: Iaf75f07d4309eb5bf0e58eecd6797ef33522acdd
2021-10-27 17:29:10 +02:00
SpiritCroc
a321d6a79a Import androidx LinearLayoutManager as BetterLinearLayoutManager
At version 1.2.1:
From https://android.googlesource.com/platform/frameworks/support
revision aaeb4835903077a52ade9c4b561ff34efa96a155

With changed package name, and modified to build outside of the androidx
package.

Change-Id: Id055880b3513305637f170df350611d20783931d
2021-10-27 17:21:04 +02:00
SpiritCroc
e7264de893 Automatic SchildiChat string correction
Change-Id: I2fa4463aca9be72be6f1c393892be9147020a19d
2021-10-27 15:25:09 +02:00
SpiritCroc
72a7e0677e Merge tag 'v1.3.6' into sc
Change-Id: I6fb1ef7b45ef67915a8d5bd17bf36cab90e9bf02
2021-10-27 15:25:05 +02:00
SpiritCroc
961adadbc8 Automatic revert to unchanged upstream strings, pt.1
Change-Id: I07fb96aea925e57f95d16ea92fc92dc1c672c079
2021-10-27 15:24:57 +02:00
Benoit Marty
042e91ee1c Set version to 1.3.6 2021-10-26 18:28:47 +02:00
Benoit Marty
f2330903ae Add named parameter for boolean 2021-10-26 16:49:38 +02:00
Benoit Marty
9f1efab18d Correctly handle url of type https://mobile.element.io/?hs_url=…&is_url=
Skip the choose server screen when such URL are open when Element
2021-10-26 16:49:21 +02:00
Benoit Marty
dc5739c11d Format 2021-10-26 16:46:20 +02:00
SpiritCroc
9cb746d509 Open room at bottom action if open at unread
Change-Id: Ia933c5a9f31c4025a34912a82f699e5c5abe8dd3
2021-10-25 20:17:49 +02:00
SpiritCroc
61140f3698 Merge remote-tracking branch 'weblate/sc' into sc
Change-Id: I1de6baa5fb75862ad0a9a62ec5ac20612c8750b8
2021-10-25 19:30:25 +02:00
SpiritCroc
2426cdfb06 Automatic SchildiChat string correction
Change-Id: Ife8129a743dff016e37df51a8a560a043f2bf58a
2021-10-25 19:30:05 +02:00
SpiritCroc
65bc997acc Merge tag 'v1.3.5' into sc
Change-Id: I3e9f85a6228649c1d8a2e886a2b234c59331c619
2021-10-25 19:29:59 +02:00
SpiritCroc
c2f524b7b3 Automatic revert to unchanged upstream strings, pt.1
Change-Id: I3c9e368fe3c46cca14ed47d7ae19bee206aa20ba
2021-10-25 19:29:50 +02:00
Benoit Marty
8b6e0187d6
Merge pull request #4320 from vector-im/feature/adm/malformed-group-link
Fixing grouped notification causing malformed url
2021-10-25 12:20:04 +02:00
Adam Brown
325e78106e
fixing strange ide extract 2021-10-25 10:51:40 +01:00
waclaw66
fa01e7257e Translated using Weblate (Czech)
Currently translated at 100.0% (117 of 117 strings)

Translation: SchildiChat/SchildiChat-android
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/schildichat-android/cs/
2021-10-23 12:06:31 +02:00
Adam Brown
06b3cc3f4b filters the unique notification uris from the link handling
- fixes malformed url errors appearing for uri we only create to force uniqueness in the notifications
2021-10-22 18:29:53 +01:00
SpiritCroc
5182c2760e Merge remote-tracking branch 'upstream/develop' into sc
Change-Id: Ie246642fb6346f4a8838878a18135add6786a9b5
2021-10-22 16:18:34 +02:00
ganfra
a82a5c9b32 Fix unread marker not showing #4313 2021-10-22 15:19:39 +02:00
SpiritCroc
8171a85657 Merge remote-tracking branch 'upstream/develop' into sc
Change-Id: Ia092f493aa3e3ad509eb7876e19fc773b40cc233
2021-10-22 11:16:40 +02:00
waclaw66
afdbb6f438 Translated using Weblate (Czech)
Currently translated at 100.0% (115 of 115 strings)

Translation: SchildiChat/SchildiChat-android
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/schildichat-android/cs/
2021-10-22 11:10:27 +02:00
Nikita Epifanov
b07542e653 Translated using Weblate (Russian)
Currently translated at 100.0% (113 of 113 strings)

Translation: SchildiChat/SchildiChat-android
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/schildichat-android/ru/
2021-10-22 11:10:27 +02:00
twann
3628a5cd9e Translated using Weblate (French)
Currently translated at 82.3% (93 of 113 strings)

Translation: SchildiChat/SchildiChat-android
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/schildichat-android/fr/
2021-10-22 11:10:27 +02:00
Linerly
c081218671 Translated using Weblate (Indonesian)
Currently translated at 100.0% (113 of 113 strings)

Translation: SchildiChat/SchildiChat-android
Translate-URL: https://weblate.bubu1.eu/projects/schildichat/schildichat-android/id/
2021-10-22 11:10:26 +02:00
Linerly
67bf92c984 Added translation using Weblate (Indonesian) 2021-10-22 11:10:26 +02:00
SpiritCroc
923c80125e Add setting to put DM in spaces based on user memberships
Change-Id: If202f640b2061423167cc8fc205781ab48ea4793
2021-10-22 11:09:06 +02:00