Commit Graph

10457 Commits

Author SHA1 Message Date
github-actions
d42b7c3610 Analysis: update lint results to reflect reduced error/warning count
Signed-off-by: github-actions <github-actions@github.com>
2025-02-16 16:07:22 +00:00
Andy Scherzinger
b13a320a3a
ci: pin analysis on stable branch
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2025-02-16 16:59:55 +01:00
Andy Scherzinger
f02cd80c5e fix(lint): Use plurals string instead of simple string
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2025-02-16 15:35:47 +00:00
Nextcloud bot
cafb82b76d
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-02-16 13:44:58 +00:00
Nextcloud bot
91fa8e871e
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-02-16 13:38:58 +00:00
Andy Scherzinger
bacf6e31ec
Merge pull request #4724 from nextcloud/backport/4722/stable-21.0
[stable-21.0] Message count is an Int hence use 'd' not 's' as formatting character
2025-02-16 14:36:53 +01:00
Andy Scherzinger
8f11fd7a87 fix(lint): message count is an Int hence use 'd' not 's' as formatting character
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2025-02-16 13:36:30 +00:00
Nextcloud bot
2d36e48240
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-02-16 13:27:57 +00:00
Nextcloud bot
86f2a74ac6
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-02-12 03:07:19 +00:00
Nextcloud bot
0d0edef40e
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-02-11 03:06:00 +00:00
Nextcloud bot
313901c42a
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-02-10 03:03:31 +00:00
Nextcloud bot
5e432851aa
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-02-09 03:07:12 +00:00
Marcel Hibbe
6fd41a604d
bump version to 21.0.0 RC2
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-02-07 13:47:09 +01:00
Marcel Hibbe
6a377f4664
Merge pull request #4699 from nextcloud/backport/4695/stable-21.0
[stable-21.0] replace userManager.currentUser usage by currentUserProvider usage
2025-02-07 12:45:04 +00:00
Marcel Hibbe
ca51bf10b7 replace userManager.currentUser usage by currentUserProvider usage
userManager.currentUser was called too often. I was not able to prove that a bug is related to it but i think it may fix some hidden bugs.

CurrentUserProviderImpl is now used throughout the code to access the current user.
userManager.currentUser is only used from CurrentUserProviderImpl whenever the _currentUser was null (should only happen on app startup)

To avoid multiple initialization of CurrentUserProviderImpl it was changed to be a @Singleton

The handling should soon be replaced with coroutine flows. However for the v21.0.0 release it's still done with RxJava to avoid bugs.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-02-07 12:26:20 +00:00
Marcel Hibbe
b6edcbf6ad
Merge pull request #4697 from nextcloud/backport/4678/stable-21.0
[stable-21.0] Team mentions
2025-02-07 12:10:45 +00:00
Marcel Hibbe
f803007bef add license headers
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-02-07 11:57:35 +00:00
Marcel Hibbe
84ea49ca32 bump detekt issues by 2
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-02-07 11:57:35 +00:00
sowjanyakch
f527ee9094 resize icons
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2025-02-07 11:57:35 +00:00
sowjanyakch
e71a1ec3f5 format code
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2025-02-07 11:57:35 +00:00
sowjanyakch
a1d7f9a5e0 make system messages work for teams
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2025-02-07 11:57:35 +00:00
sowjanyakch
7f8cf4b9fd format code
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2025-02-07 11:57:35 +00:00
sowjanyakch
7401572523 add icon
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2025-02-07 11:57:35 +00:00
sowjanyakch
de46212a66 add mention support for circles
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2025-02-07 11:57:35 +00:00
sowjanyakch
64a345d68a use proper avatar for circles
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2025-02-07 11:57:35 +00:00
sowjanyakch
f1fcc320b3 set chip avatar for team placeholder
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2025-02-07 11:57:35 +00:00
sowjanyakch
33c74aec63 add avatar for autocomplete mentions in recycler view
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2025-02-07 11:57:35 +00:00
sowjanyakch
a804932e7d add team support for mentions
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2025-02-07 11:57:35 +00:00
Sowjanya Kota
7964c96834
Merge pull request #4696 from nextcloud/backport/4688/stable-21.0
[stable-21.0] avoid duplicated messages after sending
2025-02-06 16:17:08 +01:00
Marcel Hibbe
4a0b67ee9c avoid duplicated messages after sending
It could happen that when sending a message it was received on server but if the servers response is not received, the retry was triggered in the talk app.
This sometimes happened when internet connection was not the best.

Best would be that messages with the same referenceId would be refused on server side, but this won't be the case for now. So messages with the same referenceId are NOT refused as this would be too much overhead as there would be additional queries on server for every received message)

For now, the automatic retry logic is just removed so duplicated messages won't be created automatically.
However it's still possible to manually trigger the retry via button. In this case it is not guaranteed that there won't be duplicates.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-02-06 14:58:54 +00:00
Marcel Hibbe
fc2d7c5315
Merge pull request #4693 from nextcloud/backport/4674/stable-21.0
[stable-21.0] Fixing and improving main search
2025-02-06 11:46:05 +00:00
Marcel Hibbe
ef8dd56e33 lower SEARCH_MIN_CHARS to 1
same behavior for web and iOS..

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-02-06 10:46:30 +00:00
Marcel Hibbe
52652834f2 fix nullable createRoom param for FakeRepository classes
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-02-06 10:46:30 +00:00
Marcel Hibbe
9dd7d1588b replace hardcoded number for 1:1 roomtype
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-02-06 10:46:30 +00:00
rapterjet2004
0eb853f804 Added intent handling on item click
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
2025-02-06 10:46:30 +00:00
rapterjet2004
cd5b345a14 linter -_-
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
2025-02-06 10:46:30 +00:00
rapterjet2004
60bd94fe65 Improved Search
- Uncommented out fetchOpenConversations
- Added fetchUsers to conversationList
- Made the messages appear first

Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
2025-02-06 10:46:29 +00:00
Nextcloud bot
8a91dd6285
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-02-06 03:04:59 +00:00
Marcel Hibbe
9b31981dcb
Merge pull request #4687 from nextcloud/backport/4658/stable-21.0
[stable-21.0] Set limit on conversation description length
2025-02-05 15:13:20 +00:00
rapterjet2004
4279bee325 Added character counter to xml
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
2025-02-05 13:44:31 +00:00
sowjanyakch
fdb9fc43e7 ktlintFormat
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2025-02-05 13:44:30 +00:00
sowjanyakch
5f598ee9ad set limit on description
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2025-02-05 13:44:30 +00:00
sowjanyakch
6a1d17ff04 ktlintFormat
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2025-02-05 13:44:30 +00:00
sowjanyakch
11758d4546 rename variable
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2025-02-05 13:44:30 +00:00
sowjanyakch
67ddc83b0e set limit on conversation description
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2025-02-05 13:44:30 +00:00
sowjanyakch
877fe2314a calculate conversation description length
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2025-02-05 13:44:30 +00:00
Marcel Hibbe
cc44a62b66
Merge pull request #4677 from nextcloud/backport/4667/stable-21.0
[stable-21.0] Bugfix/4492/fix missing users in UI
2025-02-04 09:33:30 +00:00
Marcel Hibbe
caeeb16ea4 self heal if multiple current users exist
usersDao.getActiveUser() will return only one current users even if multiple exist for whatever reason.
By executing setUserAsActiveWithId(it.id) with the same user, it is made sure all other users current status is set to 0.

This change won't fix the root cause if multiple users are set to current, but it will make sure the state is fixed as soon as there is a query to get the active user.

In fact, this change might also make it harder to find the root cause because debugging may be more difficult! When searching for the root cause, always keep this in mind and maybe revert the change.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-02-03 17:51:43 +00:00
Marcel Hibbe
5fdfa49e6d fix to not execute getAnyUserAndSetAsActive() until userRepository.getActiveUser() is empty
To make sure getAnyUserAndSetAsActive() is invoked lazily and avoid any side effects, it's explicitly wrapped it in a lambda.

Maybe.defer ensures that getAnyUserAndSetAsActive() is not invoked until switchIfEmpty decides it’s needed.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-02-03 17:51:43 +00:00
Marcel Hibbe
20c08903a2 ensure that getAnyUserAndSetAsActive will set other users to current=false
Before, getAnyUserAndSetAsActive did only set a random first user to current=true without to check if there is any other current user.

So it was up to the calling function of getAnyUserAndSetAsActive to check this.

I did not identify a scenario where the getAnyUserAndSetAsActive could cause to set multiple users to current, but anyway the new implementation might fix some scenario that i could not reproduce.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2025-02-03 17:51:43 +00:00