Commit graph

9441 commits

Author SHA1 Message Date
Marcel Hibbe
456fa54f1f
pass newestMessageIdFromDb to initMessagePolling
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-10-22 10:35:45 +02:00
Marcel Hibbe
e6b1b9fa50
extract getCappedMessagesAmountOfChatBlock
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-10-22 10:35:45 +02:00
Marcel Hibbe
fac2f54026
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-22 10:35:45 +02:00
Marcel Hibbe
bb607b065e
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-22 10:35:45 +02:00
Marcel Hibbe
57cd3af904
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-22 10:35:45 +02:00
Marcel Hibbe
c04871786e
load conversation from DB first, then update by request if connection is available
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-10-22 10:35:44 +02:00
Marcel Hibbe
95fb2541f6
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-22 10:35:44 +02:00
Nextcloud bot
4712a52d19
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-22 02:57:12 +00:00
Nextcloud bot
90b40194c0
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-21 02:50:04 +00:00
Nextcloud bot
de7b7a0830
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-20 02:54:22 +00:00
Nextcloud bot
01cc3edc08
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-19 03:06:44 +00:00
Nextcloud bot
37ae1c0345
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-18 03:01:42 +00:00
Nextcloud bot
5522e88c69
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-17 02:58:30 +00:00
Nextcloud bot
fc43bbe9c7
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-16 03:05:49 +00:00
Nextcloud bot
bbce4f9c1d
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-15 02:51:32 +00:00
Nextcloud bot
c068a6ecfe
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-14 02:50:31 +00:00
Nextcloud bot
65b6537e45
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-13 02:57:57 +00:00
Nextcloud bot
8018325be5
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-12 02:51:17 +00:00
Nextcloud bot
596af2aa4a
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-11 03:01:06 +00:00
Nextcloud bot
4b959e5dfa
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-10 02:54:02 +00:00
Sowjanya Kota
3fda8dd9e7
Merge pull request #4298 from nextcloud/backport/4289/stable-20.0
[stable-20.0] fix position and animation of typing indicator
2024-10-09 13:40:33 +02:00
Marcel Hibbe
75d0bc0725
fix position and animation of typing indicator
Without this fix, typing indicator moves up and wont go down

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-10-09 13:09:35 +02:00
Nextcloud bot
d5f0a361d5
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-09 02:53:31 +00:00
Nextcloud bot
1b3d9c075a
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-05 02:52:04 +00:00
Nextcloud bot
2ab9fd48f3
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-04 02:53:20 +00:00
Nextcloud bot
6716f9b203
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-03 02:51:47 +00:00
Marcel Hibbe
1a8a723349
Merge pull request #4296 from nextcloud/backport/4293/stable-20.0
[stable-20.0] make predefined status use custom time
2024-10-01 12:46:37 +02:00
sowjanyakch
ebcde30a85 make predefined status use custom time
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-01 10:46:24 +00:00
Nextcloud bot
9b81e6b802
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-09-29 03:11:44 +00:00
Nextcloud bot
76ea499a0c
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-09-28 02:50:59 +00:00
Marcel Hibbe
3b44590c69
Merge pull request #4285 from nextcloud/backport/4284/stable-20.0
[stable-20.0] add copyright header to fix reuse
2024-09-27 12:27:37 +02:00
Marcel Hibbe
a5b5ec6aee add copyright to fix reuse
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-09-27 08:43:16 +00:00
Nextcloud bot
ad9a6a1eb6
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-09-27 02:52:40 +00:00
Marcel Hibbe
d0ecffff0f
bump version to 20.0.2
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-09-26 13:37:19 +02:00
Marcel Hibbe
3ad7c90086
Merge pull request #4280 from nextcloud/backport/4277/stable-20.0
[stable-20.0] Bugfix/4272/fix to handle old server versions
2024-09-26 13:34:46 +02:00
Marcel Hibbe
38905ec9cf bump versions for SERVER_VERSION_MIN_SUPPORTED + SERVER_VERSION_SUPPORT_WARNING
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-09-26 11:34:26 +00:00
Marcel Hibbe
63ebe5ac1e Add test for conversation conversion
This test respects different API versions and checks if default values are set as expected.

- remove deprecated+unused methods
- remove comments
- remove unnecessary double-bang operator

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-09-26 11:34:26 +00:00
Marcel Hibbe
891be0a5ab
Merge pull request #4279 from nextcloud/backport/4259/stable-20.0
[stable-20.0] Password improvement
2024-09-26 13:17:30 +02:00
sowjanyakch
4f5d5383c8 Rounded corners for change password dialog
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-09-26 11:17:05 +00:00
sowjanyakch
72c6448829 use open lock icon for set password
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-09-26 11:17:05 +00:00
sowjanyakch
24df55fe07 UI improvements
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-09-26 11:17:05 +00:00
sowjanyakch
2cc08fc17f Add change password dialog
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-09-26 11:17:05 +00:00
sowjanyakch
a33c90f628 Add Change Password dialogue
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-09-26 11:17:05 +00:00
Marcel Hibbe
bd65cad681
Merge pull request #4269 from nextcloud/backport/4265/stable-20.0
[stable-20.0] Fix crash when externalSignalingServer is empty
2024-09-25 11:26:09 +02:00
Marcel Hibbe
baae1c431e Fix crash when externalSignalingServer is empty
Otherwise, following crash happened, as it was tried to deal with the empty url:

2024-09-24 15:10:30.719 17765-17765 WebSocketInstance       com.nextcloud.talk2                  D  restartWebSocket: /spreed
2024-09-24 15:10:30.722 17765-17765 System.err              com.nextcloud.talk2                  W  java.lang.IllegalArgumentException: Expected URL scheme 'http' or 'https' but no scheme was found for /spree...
2024-09-24 15:10:30.723 17765-17765 System.err              com.nextcloud.talk2                  W  	at okhttp3.HttpUrl$Builder.parse$okhttp(HttpUrl.kt:1261)

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-09-25 07:49:01 +00:00
Nextcloud bot
66f97567e0
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-09-25 02:54:09 +00:00
Marcel Hibbe
b4d8a7ee20
Merge pull request #4258 from nextcloud/backport/4250/stable-20.0
[stable-20.0] Conversation creation modification
2024-09-23 16:45:24 +02:00
sowjanyakch
31966441f4 rename variable selectedImageUri
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-09-23 14:45:05 +00:00
sowjanyakch
6b32cb7e0b ktlint format
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-09-23 14:45:05 +00:00
sowjanyakch
54b5fd5045 Get selectedImageUri from ViewModel
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-09-23 14:45:05 +00:00