Commit graph

9966 commits

Author SHA1 Message Date
Marcel Hibbe
c81b1fa62f
pass newestMessageIdFromDb to initMessagePolling
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-10-21 13:49:55 +02:00
Marcel Hibbe
7eb8b9fa70
extract getCappedMessagesAmountOfChatBlock
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-10-21 13:49:55 +02:00
Marcel Hibbe
adf18020c1
Fix unintended deletion of conversations (+related messages&chatBlocks)
Mistake was, that the conversations from DB and sync could differ due to values.
E.g. when a user changed the status, the conversations from DB and sync would differ. So there were conversations (+related messages&chatBlocks) deleted sometimes.
This caused bugs that when entering a chat, all data was loaded again.

In the previous implementation (before this PR), this error was only visible in the UI when you were offline (in this case, nothing was displayed!).

To fix the bug, only the internalId's are compared.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-10-21 13:49:55 +02:00
Marcel Hibbe
3d37cc0831
only do initial request if newestMessageIdFromDb is lower than lastReadMessage from conversation
If conversation has a newer message id than DB then an online request is necessary

If conversation has an older message id than DB then an online request is not necessary (this could happen when updating of DB is implemented for push notification, not yet done).

If conversation has the same message id like DB than request can be skipped

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-10-21 13:49:54 +02:00
Marcel Hibbe
dc38904d01
delay progress bar
delay progress bar for one second before showing up for slow connection

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-10-21 13:49:54 +02:00
Marcel Hibbe
b1d6086684
load conversation from DB first, then update by request if connection is available
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-10-21 13:49:54 +02:00
Marcel Hibbe
818a843143
check if sync succeeded
Decrease message limit for retries of message loading

make it possible to add any amount (up to 100) of messages to UI for initial loading.

add logging

only make initial request for chat messages when newest message from DB is not equal the lastReadMessage that is offered by the conversation

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-10-21 13:49:54 +02:00
Nextcloud Android Bot
a331ba6372 Weekly 20.1.0 Alpha 09 2024-10-21 03:14:43 +00:00
Nextcloud bot
a5c1c64456
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-21 02:49:22 +00:00
Nextcloud bot
c89473020c
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-20 02:53:41 +00:00
github-actions[bot]
bdf0cfa597
Merge pull request #4349 from nextcloud/renovate/androidx.compose.runtime-runtime-1.x
fix(deps): update dependency androidx.compose.runtime:runtime to v1.7.4
2024-10-19 11:27:54 +02:00
renovate[bot]
6deffd7548
fix(deps): update dependency androidx.compose.runtime:runtime to v1.7.4
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-19 07:48:42 +00:00
github-actions[bot]
95d2a97b35
Merge pull request #4352 from nextcloud/renovate/ubuntu-noble
chore(deps): update ubuntu:noble docker digest to 99c3519
2024-10-19 06:15:16 +00:00
renovate[bot]
614545fdf2
chore(deps): update ubuntu:noble docker digest to 99c3519
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-19 06:06:47 +00:00
github-actions[bot]
8093c33d22
Merge pull request #4351 from nextcloud/renovate/androidx.compose-compose-bom-2024.x
fix(deps): update dependency androidx.compose:compose-bom to v2024.10.00
2024-10-19 07:27:19 +02:00
renovate[bot]
5b8d0febf4
fix(deps): update dependency androidx.compose:compose-bom to v2024.10.00
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-19 05:17:39 +00:00
github-actions[bot]
393f656786
Merge pull request #4350 from nextcloud/renovate/androidx.compose.ui-ui-test-junit4-1.x
fix(deps): update dependency androidx.compose.ui:ui-test-junit4 to v1.7.4
2024-10-19 07:10:28 +02:00
renovate[bot]
38b19f8bdc
fix(deps): update dependency androidx.compose.ui:ui-test-junit4 to v1.7.4
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-19 04:54:01 +00:00
github-actions[bot]
32f3070221
Merge pull request #4348 from nextcloud/renovate/androidx.activity-activity-ktx-1.x
fix(deps): update dependency androidx.activity:activity-ktx to v1.9.3
2024-10-19 06:45:53 +02:00
github-actions[bot]
17eae65dc6
Merge pull request #4347 from nextcloud/renovate/androidx.activity-activity-compose-1.x
fix(deps): update dependency androidx.activity:activity-compose to v1.9.3
2024-10-19 06:44:52 +02:00
Nextcloud bot
8444ac0e88
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-19 03:05:59 +00:00
renovate[bot]
e86e3c9aaf
fix(deps): update dependency androidx.activity:activity-ktx to v1.9.3
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-19 02:42:50 +00:00
renovate[bot]
a77f08b74a
fix(deps): update dependency androidx.activity:activity-compose to v1.9.3
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-19 02:41:25 +00:00
Daniel Calviño Sánchez
1c0e473e1a Fix ignored blank lines in Javadocs
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2024-10-18 14:28:55 +02:00
Nextcloud bot
4f4285810b
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-18 03:01:00 +00:00
Nextcloud bot
2d37338a31
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-17 02:57:49 +00:00
rapterjet2004
ea7d48fb67
detekt
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
2024-10-16 08:57:40 -05:00
Andy Scherzinger
abfa87cef6
Merge pull request #4343 from nextcloud/renovate/ubuntu-noble
chore(deps): update ubuntu:noble docker digest to d4f6f70
2024-10-16 07:25:08 +02:00
renovate[bot]
55d5f246f8
chore(deps): update ubuntu:noble docker digest to d4f6f70
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-16 03:45:00 +00:00
Nextcloud bot
210a6aaf1c
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-16 03:05:08 +00:00
github-actions[bot]
4b46207720
Merge pull request #4342 from nextcloud/renovate/mockito-monorepo
fix(deps): update mockito monorepo to v5.14.2
2024-10-15 16:38:48 +02:00
renovate[bot]
3b70acc309
fix(deps): update mockito monorepo to v5.14.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-15 14:29:11 +00:00
rapterjet2004
39305d7e96
Ironed out the bugs
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
2024-10-15 08:15:13 -05:00
Andy Scherzinger
eff1dbda78
Merge pull request #4340 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2024-10-15 07:14:21 +02:00
nextcloud-android-bot
9516576c4f 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <android@nextcloud.com>
2024-10-15 07:14:04 +02:00
Nextcloud bot
b731d6ad38
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-15 02:50:51 +00:00
github-actions[bot]
c9af8419b4
Merge pull request #4339 from nextcloud/renovate/com.github.spotbugs.snom-spotbugs-gradle-plugin-6.x
fix(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.0.25
2024-10-15 01:11:42 +02:00
renovate[bot]
db7c2a18d9
fix(deps): update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.0.25
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-14 23:01:58 +00:00
github-actions[bot]
e9fc23a561
Merge pull request #4337 from nextcloud/renovate/com.android.tools.build-gradle-8.x
fix(deps): update dependency com.android.tools.build:gradle to v8.7.1
2024-10-14 21:18:31 +02:00
renovate[bot]
82bf7e320d
fix(deps): update dependency com.android.tools.build:gradle to v8.7.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-14 19:10:00 +00:00
rapterjet2004
94f33c13bc
WIP got archived working - still have some todos
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
2024-10-14 09:00:24 -05:00
Nextcloud Android Bot
c9d3aebdc7 Weekly 20.1.0 Alpha 08 2024-10-14 03:14:01 +00:00
Nextcloud bot
9e7555a911
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-14 02:49:49 +00:00
Nextcloud bot
d8089beeb2
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-13 02:57:15 +00:00
github-actions[bot]
045d4b9d35
Merge pull request #4335 from nextcloud/renovate/ubuntu-noble
chore(deps): update ubuntu:noble docker digest to ab64a83
2024-10-12 13:14:30 +02:00
renovate[bot]
691cc39be2
chore(deps): update ubuntu:noble docker digest to ab64a83
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-12 11:07:16 +00:00
Nextcloud bot
37c0854d6e
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-12 02:50:35 +00:00
github-actions[bot]
ca053c83c2
Merge pull request #4334 from nextcloud/renovate/ubuntu-noble
chore(deps): update ubuntu:noble docker digest to ee6860a
2024-10-12 02:14:49 +00:00
renovate[bot]
e23b62f4b0
chore(deps): update ubuntu:noble docker digest to ee6860a
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-12 02:03:28 +00:00
rapterjet2004
8eeca17d86
WIP
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
2024-10-11 10:51:37 -05:00