Commit graph

7240 commits

Author SHA1 Message Date
Nextcloud bot
107f237409
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-11-06 02:54:18 +00:00
Marcel Hibbe
f1d0709f7a set nc_last_moderator_leaving_room_warning to one line in strings.xml
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-05 14:29:52 +00:00
sowjanyakch
1bf55f9071 add const val for error code
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-05 14:29:52 +00:00
sowjanyakch
bbcc3fb0a0 handle errors properly
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-05 14:29:52 +00:00
sowjanyakch
9028ad0d1c ktlintFormat
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-05 14:29:52 +00:00
sowjanyakch
185b42f91a refresh main activity after leaving a conversation
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-05 14:29:52 +00:00
sowjanyakch
189b4e9c64 make worker listenable
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-05 14:29:52 +00:00
sowjanyakch
621f9f7530 handle workResult
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-05 14:29:51 +00:00
sowjanyakch
a2940309eb Start unique work
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-05 14:29:51 +00:00
sowjanyakch
ed5c9a0b8f remove unused imports
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-05 14:29:51 +00:00
sowjanyakch
c0377a7f4d Convert LeaveConversationWorker from java to Kotlin
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-05 14:29:51 +00:00
sowjanyakch
a0be5facbc Rename .java to .kt
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-05 14:29:51 +00:00
Nextcloud bot
3ece0f4bb3
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-11-05 12:27:09 +00:00
Nextcloud bot
c260238787
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-11-05 10:57:11 +00:00
Nextcloud bot
d468b2d871
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-11-05 02:53:41 +00:00
Nextcloud bot
906a4aa420
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-11-04 03:01:00 +00:00
Nextcloud bot
35daa14b68
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-11-03 03:01:13 +00:00
Nextcloud bot
db07b6a7be
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-11-01 02:51:20 +00:00
Nextcloud bot
71ffc052bf
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-31 02:52:40 +00:00
Nextcloud bot
57f6a15e64
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-30 02:53:19 +00:00
Nextcloud bot
d2cf608e2e
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-29 02:50:49 +00:00
Nextcloud bot
0e1e0d95b5
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-27 03:01:25 +00:00
Nextcloud bot
a777197951
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-26 02:51:01 +00:00
Nextcloud bot
2a7460796d
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-25 03:08:44 +00:00
sowjanyakch
7d2c9b58de ktlintFormat
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-24 12:06:23 +00:00
sowjanyakch
9d2db57633 use const val for time
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-24 12:06:23 +00:00
sowjanyakch
7e35882303 KtlintFormat
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-24 12:06:23 +00:00
sowjanyakch
958b786402 Only group Chat messages
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-24 12:06:23 +00:00
sowjanyakch
30afe45751 modify previousChatMessageIndex
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-24 12:06:23 +00:00
sowjanyakch
37e59c90d4 remove unused constants
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-24 12:06:23 +00:00
sowjanyakch
6b92b884d0 group chat messages
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-24 12:06:23 +00:00
Nextcloud bot
53d80c27df
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-10-24 03:20:35 +00:00
sowjanyakch
39aa13f6b7 remove comments
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-23 14:32:50 +00:00
sowjanyakch
6e50f0de59 ktlintFormat
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-23 14:32:50 +00:00
sowjanyakch
ea28d770aa don't set timer in past
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-23 14:32:49 +00:00
sowjanyakch
cbe9305497 set timer for lobby
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-10-23 14:32:49 +00:00
Daniel Calviño Sánchez
bf86b04ac9 Add explicit documentation about the different casing
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2024-10-23 13:02:32 +00:00
Daniel Calviño Sánchez
4573d4be76 Fix handling of end call for all with external signaling
When the message applies to all participants the property is all in
lower case. The comparison is case sensitive, so the message was ignored
and the call was not left by the Talk Android app.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2024-10-23 13:02:32 +00: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
rapterjet2004
9a7838ae4e detekt
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
2024-10-22 09:41:43 +00: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
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