Commit graph

9471 commits

Author SHA1 Message Date
sowjanyakch
d550973dfc ktlintFormat
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>

[skip ci]
2024-10-23 10:58:49 +00:00
sowjanyakch
b7fcc3d9ff modify strings
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-23 10:58:49 +00:00
sowjanyakch
ca375083e7 use official deck card icon and some alignment changes
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-23 10:58:49 +00:00
sowjanyakch
ce81e3acfe use correct deck card icon
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-23 10:58:49 +00:00
sowjanyakch
69b614ad6d add replyable message tag
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-23 10:58:49 +00:00
sowjanyakch
08a24a4cb5 Rename outcomingDeckCardViewHolder
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-23 10:58:49 +00:00
sowjanyakch
3cc356d9ba Add theming to deck card image
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-23 10:58:49 +00:00
sowjanyakch
6c5c1e6f3e include deck card name as the lastMessageDisplayText
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-23 10:58:49 +00:00
sowjanyakch
0dd48ab8d8 solve contentDescription warning for Image
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-23 10:58:48 +00:00
sowjanyakch
48aafbdb39 work on UI of IncomingDeckCardViewHolder
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-23 10:58:48 +00:00
sowjanyakch
8cba7b5806 work on UI of OutcomingDeckCardViewHolder
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-23 10:58:48 +00:00
sowjanyakch
7a455d867c Display card deck with parameters
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-23 10:58:48 +00:00
sowjanyakch
16120de9a4 Work on Incoming and Outgoing deck card viewholder
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-23 10:58:48 +00:00
sowjanyakch
49fab4479f create deck card xml layout
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-23 10:58:48 +00:00
Marcel Hibbe
f14e849ea5
Merge pull request #4366 from nextcloud/backport/4359/stable-20.0
[stable-20.0] Remove dead code to set the call state
2024-10-23 12:19:05 +02:00
Daniel Calviño Sánchez
433d4ff7c4
Remove dead code to set the call state
"IN_CONVERSATION" was set when the activity was created and "state" in
the intent extras had the value "resume". However, there is no "state"
extra set by default in Android intents, it should be explicitly set,
but as it is not set anywhere in Talk Android code that would make it
dead code and safe to remove.

Moreover, the connection to the call should be initialized again in any
case rather than resumed when "onCreate" is called, as it is likely that
any previous connection would have been ended if the previous activity
instance was destroyed.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2024-10-23 10:42:31 +02:00
Marcel Hibbe
37a317b676
Merge pull request #4365 from nextcloud/backport/4346/stable-20.0
[stable-20.0] Fix ignored blank lines in Javadocs
2024-10-23 10:38:39 +02:00
Nextcloud bot
da7b12363d
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-23 03:08:37 +00:00
Daniel Calviño Sánchez
d66edfc192 Fix ignored blank lines in Javadocs
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2024-10-22 12:52:30 +00:00
Marcel Hibbe
bfcd97673f
Merge pull request #4362 from nextcloud/backport/4356/stable-20.0
[stable-20.0] Adjust cacheDir based on Android version
2024-10-22 12:22:07 +02:00
Marcel Hibbe
ae1402ae6d
Merge pull request #4316 from nextcloud/backport/4314/stable-20.0
[stable-20.0] Bugfix/4305/fix fastlane images
2024-10-22 11:49:12 +02:00
rapterjet2004
9a7838ae4e detekt
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
2024-10-22 09:41:43 +00:00
Marcel Hibbe
ba548b1179
add app icon to images folder
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-10-22 11:34:27 +02:00
Marcel Hibbe
e3205f8a96
move phoneScreenshots to images folder
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-10-22 11:34:27 +02:00
Marcel Hibbe
251778491d
Merge pull request #4307 from nextcloud/backport/4306/stable-20.0
[stable-20.0] Bugfix/4276/fix search availability
2024-10-22 11:29:07 +02:00
Marcel Hibbe
87d03a359b
center search results in chat
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-10-22 11:19:47 +02:00
Marcel Hibbe
4482ac728c
fix availability of search feature.
Hide search feature if room is federated.
Also, for conversation list the check for federation inside isUnifiedSearchAvailable makes no sense.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-10-22 11:19:46 +02:00
Marcel Hibbe
2ab6111333
Merge pull request #4355 from nextcloud/backport/4300/stable-20.0
[stable-20.0] Feature/4299/improve offline support
2024-10-22 10:43:19 +02:00
Marcel Hibbe
0dc4572ba3
fix to handle chats without offline messages when connection is lost
avoid NPE:

java.lang.NullPointerException
	at com.nextcloud.talk.chat.data.network.OfflineFirstChatRepository.getCappedMessagesAmountOfChatBlock(OfflineFirstChatRepository.kt:186)
	at com.nextcloud.talk.chat.data.network.OfflineFirstChatRepository.access$getCappedMessagesAmountOfChatBlock(OfflineFirstChatRepository.kt:43)
	at com.nextcloud.talk.chat.data.network.OfflineFirstChatRepository$loadInitialMessages$1.invokeSuspend(OfflineFirstChatRepository.kt:162)

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-10-22 10:35:46 +02:00
Marcel Hibbe
b1e390744b
refactoring and logging
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-10-22 10:35:45 +02:00
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