Commit Graph

10528 Commits

Author SHA1 Message Date
Marcel Hibbe
9b6b01254a
remove scope cancelation for handleChatOnBackPress (replace with lifecyle event)
handleOnStop will handle this (and more scenarios than just backpress)

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-01-22 13:59:03 +01:00
Marcel Hibbe
1f105d44d3
check if scope is active during long polling
Because long polling may have to be informed that the scopep was cancelled, the isActive checks are added so it can't happen that messages are added when they shouldn't.

I could not reproduce the scenario, anyway the checks should make sense in my opinion.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-01-22 13:54:31 +01:00
Marcel Hibbe
b6e341bbf1
cancel scope when onStop is reached
This is necessary especially to cancel the long polling when configuration change was made, e.g. screen was rotated. Otherwise multiple long polling requests would be running after configuration changes.

Because it not possible to launch a new coroutine in a scope that was canceled, it is necessary to re-initialize the scope.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-01-22 13:50:30 +01:00
Nextcloud bot
504846593b
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-01-22 03:05:52 +00:00
github-actions[bot]
e9946f6275
Merge pull request #4639 from nextcloud/renovate/github-codeql-action-3.x
chore(deps): update github/codeql-action action to v3.28.2
2025-01-21 23:38:05 +00:00
renovate[bot]
3da9501952
chore(deps): update github/codeql-action action to v3.28.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-21 23:24:34 +00:00
Andy Scherzinger
6c5cbd5e91
Merge pull request #4637 from nextcloud/renovate/actions-stale-9.x
chore(deps): update actions/stale action to v9.1.0
2025-01-21 08:04:34 +01:00
renovate[bot]
4bf5704ee4
chore(deps): update actions/stale action to v9.1.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-21 06:57:20 +00:00
Nextcloud bot
136ad56bf3
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-01-21 03:04:00 +00:00
Marcel Hibbe
e1a0f20e4a
Merge pull request #4633 from nextcloud/jtr/chore-1478
chore: switch to remote.php/dav in scripts
2025-01-20 16:04:25 +00:00
Josh
64923080fb
chore: use remote.php/dav in analysis-wrapper.sh
Signed-off-by: Josh <josh.t.richards@gmail.com>
2025-01-20 11:57:54 +01:00
Josh
f9928ef60a
chore: switch uploadArtifact.sh to remote.php/dav
Signed-off-by: Josh <josh.t.richards@gmail.com>
2025-01-20 11:57:53 +01:00
Marcel Hibbe
3522ab7981
Merge pull request #4634 from nextcloud/enableCertSelection
enable to select authentication cert in server selection screen
2025-01-20 10:55:50 +00:00
Marcel Hibbe
28ffb7f971
enable to select authentication cert in server selection screen
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-01-20 10:35:53 +01:00
Nextcloud Android Bot
d450c470fe Weekly 21.0.0 Alpha 10 2025-01-20 03:12:34 +00:00
Nextcloud bot
aa42f5c253
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-01-20 02:58:46 +00:00
Nextcloud bot
fba4e948b2
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-01-18 03:02:52 +00:00
Marcel Hibbe
5535bed35c
no "unread messages" popup for invisible messages
if chatMessageList is empty after handleSystemMessages it makes no sense to call the following methods.
Also processMessagesFromTheFuture was executed which caused that the popup was shown.

A better solution for the future should be to handle(remove) the "to-hide" system messages already in the repo or viewmodel

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-01-17 14:09:58 +01:00
Marcel Hibbe
20612c8543
avoid shimmer animations overlay with chat messages
The idea to show the progress bar (aka shimmer animation) was that it show not be shown at all if loading messages happens in less than a second (this was a better UX in my opinion).

The idea was to hide the progress bar when
ChatMessageStartState was triggered.

However there can be moment when adapter is still empty after ChatMessageStartState and if in this moment the DELAY_TO_SHOW_PROGRESS_BAR is reached before the adapter is actually filled, the overlay happens.
It could be a solution to move the hiding of the progress bar, however then special cases might have to be handled.

For simplicity, the logic for DELAY_TO_SHOW_PROGRESS_BAR is removed. Progress bar is always shown without a delay so it wont be triggered on a later moment and can't overlay the chat.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-01-17 13:40:57 +01:00
Marcel Hibbe
779c1627aa
Merge pull request #4620 from nextcloud/fix/4557/reactionsBackground
Fix reactions background
2025-01-17 12:14:41 +00:00
Marcel Hibbe
35f9e339c9
make sure that canDeleteConversation is used to determine if "Delete all message" is shown.
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-01-17 11:55:41 +01:00
Andy Scherzinger
86db9f78c2
Merge pull request #4625 from nextcloud/renovate/com.github.spotbugs.snom-spotbugs-gradle-plugin-6.x
Update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.2
2025-01-17 08:17:34 +01:00
renovate[bot]
c127261de1
Update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-17 06:26:32 +00:00
Nextcloud bot
115f5e372e
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-01-17 03:02:33 +00:00
Andy Scherzinger
9fcd466576
style(icons): Update pdf icon to latest server version / material symbols
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2025-01-16 18:25:07 +01:00
Andy Scherzinger
9e3840c3a9
style(lint): replace magic number with constant
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2025-01-16 16:29:39 +01:00
Andy Scherzinger
e4088d0ddc
style(lint): Fix formatting
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2025-01-16 15:57:24 +01:00
Andy Scherzinger
0a6a1a703f
style(reactions): Add default vertical spacing at top of reactions
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2025-01-16 15:53:30 +01:00
Andy Scherzinger
a2dac5e0fa
style(reactions): ensure correct color coding of own reaction backgrounds
Resolves #4557

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2025-01-16 15:40:54 +01:00
Andy Scherzinger
b26b598a6c
style(reactions): Align reactions with text for preview messages
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2025-01-16 15:40:53 +01:00
Andy Scherzinger
9e7996b766
style(reaction): make reactions background rounded instead of pill-styled
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2025-01-16 15:40:53 +01:00
Marcel Hibbe
383546eb97
Merge pull request #4598 from nextcloud/bugfix/4503/fixTooManyRequestsException
fix TooManyRequestsException
2025-01-16 14:18:02 +00:00
github-actions[bot]
35d18cc4b4
Merge pull request #4615 from nextcloud/renovate/com.github.spotbugs.snom-spotbugs-gradle-plugin-6.x
Update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.1
2025-01-16 13:38:50 +00:00
github-actions[bot]
2a4ca9f6ed
Merge pull request #4614 from nextcloud/renovate/androidx.datastore-datastore-preferences-1.x
Update dependency androidx.datastore:datastore-preferences to v1.1.2
2025-01-16 13:32:56 +00:00
Marcel Hibbe
69ddeaa06a
use lifecycleScope from chatActivity in OutcomingTextMessageViewHolder
defining an own scope and clearing it via onViewRecycled did not work out somehow (offline icon was wrong)

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-01-16 14:29:12 +01:00
renovate[bot]
6a4edc9c71
Update dependency com.github.spotbugs.snom:spotbugs-gradle-plugin to v6.1.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-16 13:22:32 +00:00
renovate[bot]
0eabff6176
Update dependency androidx.datastore:datastore-preferences to v1.1.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-16 13:20:27 +00:00
github-actions[bot]
894c788ede
Merge pull request #4613 from nextcloud/renovate/androidx.datastore-datastore-core-1.x
Update dependency androidx.datastore:datastore-core to v1.1.2
2025-01-16 13:14:18 +00:00
renovate[bot]
ed13698c8f
Update dependency androidx.datastore:datastore-core to v1.1.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-16 12:55:06 +00:00
Marcel Hibbe
6e1114d4d8
fix TooManyRequestsException
By using
networkMonitor.isOnline.first()
the function
unregisterNetworkCallback
was triggered, which sometimes causes the ConnectivityManager$TooManyRequestsException.

So each time isOnline.first() was called, the callbackFlow would:
- Register a new NetworkCallback.
- Emit a value and cancel the flow.
- Unregister the NetworkCallback.

The exception was:
Exception android.net.ConnectivityManager$TooManyRequestsException:
  at android.net.ConnectivityManager.convertServiceException (ConnectivityManager.java:3771)
  at android.net.ConnectivityManager.sendRequestForNetwork (ConnectivityManager.java:3960)
  at android.net.ConnectivityManager.sendRequestForNetwork (ConnectivityManager.java:3967)
  at android.net.ConnectivityManager.registerNetworkCallback (ConnectivityManager.java:4349)
  at android.net.ConnectivityManager.registerNetworkCallback (ConnectivityManager.java:4319)
  at com.nextcloud.talk.data.network.NetworkMonitorImpl$isOnline$1.invokeSuspend (NetworkMonitorImpl.kt:61)

To fix this, the cold flow from callbackFlow is converted to a StateFlow.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-01-16 13:50:51 +01:00
Marcel Hibbe
ce7ed877ca
Merge pull request #4611 from nextcloud/bugfix/4610/fixNpeCurrentUserInConvList
hopefully fix NPE for currentUser in addToConversationItems
2025-01-16 12:48:53 +00:00
Nextcloud bot
44c84dd1c5
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-01-16 03:02:48 +00:00
Marcel Hibbe
13e5626159
hopefully fix NPE for currentUser
It seems there could have been a race condition because currentUser was initialized too late.
 I was not able to reproduce but hopefully this fixes it:
 - initialize currentUser earlier (moved from onResume to onCreate)
 - use currentUserProvider instead userManager

NPEs were reported via gplay:

1)
Exception java.lang.NullPointerException:
  at com.nextcloud.talk.conversationlist.ConversationsListActivity.addToConversationItems (ConversationsListActivity.kt:851)
  at com.nextcloud.talk.conversationlist.ConversationsListActivity.access$addToConversationItems (ConversationsListActivity.kt:151)
  at com.nextcloud.talk.conversationlist.ConversationsListActivity$initObservers$5$1.invokeSuspend (ConversationsListActivity.kt:394)
  at com.nextcloud.talk.conversationlist.ConversationsListActivity$initObservers$5$1.invoke (Unknown Source:8)
  at com.nextcloud.talk.conversationlist.ConversationsListActivity$initObservers$5$1.invoke (Unknown Source:4)

2)
Exception java.lang.RuntimeException:
  at android.app.ActivityThread.performResumeActivity (ActivityThread.java:5427)
  at android.app.ActivityThread.handleResumeActivity (ActivityThread.java:5508)
  ...
Caused by java.lang.NullPointerException:
  at com.nextcloud.talk.conversationlist.ConversationsListActivity.shouldShowNotificationWarning (ConversationsListActivity.kt:1557)

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-01-15 19:11:24 +01:00
Marcel Hibbe
6241c685fb
Merge pull request #4204 from nextcloud/timeout-immediate
Added option `Immediate` for passcode timeout.
2025-01-15 10:48:00 +00:00
parneet-guraya
6c67bf7b96
timeout option immediate
Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-01-15 11:28:32 +01:00
Andy Scherzinger
fdb38de5d2
Merge pull request #4604 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2025-01-15 10:50:25 +01:00
Andy Scherzinger
209a6162df
Merge pull request #4603 from nextcloud/bugfix/4599/unreadMentionCutoff
fix to not cut off unread mentions bubble
2025-01-15 10:49:56 +01:00
nextcloud-android-bot
4045f8f4eb 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <android@nextcloud.com>
2025-01-15 09:37:49 +00:00
Marcel Hibbe
db8c4de028
fix to not cut off unread mentions bubble
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-01-15 10:33:52 +01:00
Nextcloud bot
172eddb217
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-01-15 03:03:33 +00:00