Commit Graph

7680 Commits

Author SHA1 Message Date
Daniel Calviño Sánchez
26be065545 Add dummy Log implementation to be used in tests
Log methods are static, so they can not be mocked using Mockito.
Although it might be possible to use PowerMockito a dummy implementation
was added instead, as Log uses are widespread and it is not something
worth mocking anyway.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2025-01-03 11:29:22 +00:00
Daniel Calviño Sánchez
a1eb90da9f Remove Dagger related code from PeerConnectionWrapper
The PeerConnectionWrapper does not need to be injected in the
application, nor the Context needs to be injected in the
PeerConnectionWrapper. This all seems to be leftovers from the past, and
removing them would ease adding unit tests for the
PeerConnectionWrapper.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2025-01-03 11:29:21 +00:00
Nextcloud bot
3aa2be2ece
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-01-03 03:04:18 +00:00
Nextcloud bot
1628993b73
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-12-28 03:04:45 +00:00
Nextcloud bot
159096cc64
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-12-27 03:04:41 +00:00
Nextcloud bot
3e59a289f7
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-12-26 03:04:53 +00:00
Nextcloud bot
bfe7a6576f
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-12-25 03:04:26 +00:00
Nextcloud bot
7cf93e9ffc
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-12-24 03:02:29 +00:00
Nextcloud bot
cb51f85037
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-12-23 03:02:16 +00:00
Nextcloud bot
ced2ac0951
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-12-22 03:19:17 +00:00
Nextcloud bot
1b84cb5e4e
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-12-21 03:03:52 +00:00
Nextcloud bot
43a2950822
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-12-19 03:04:23 +00:00
Nextcloud bot
5300980ba5
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-12-18 03:38:09 +00:00
rapterjet2004
6a8116e749 Fixed overlay bug
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
2024-12-16 10:06:40 +01:00
Andy Scherzinger
e540eb97dc
style: Fix formatting
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-12-16 09:18:57 +01:00
Andy Scherzinger
eb3b2f6e97
style(detekt): Restrict the number of return statements in methods
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-12-16 09:18:56 +01:00
Andy Scherzinger
ada56249da
style(detekt): Shorten methods
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-12-16 09:18:55 +01:00
Andy Scherzinger
78dc7fb2c7
fix(lint): Move suppressions due to refactoring
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-12-16 09:18:55 +01:00
Andy Scherzinger
a034fc8237
style(ktlint): Fix formatting
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-12-16 09:18:53 +01:00
Andy Scherzinger
0687061efd
style(detekt): Shorten methods
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-12-16 09:18:52 +01:00
Andy Scherzinger
091531e2d2
style(detekt): Move magic number to constant
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-12-16 09:18:52 +01:00
Nextcloud bot
5dcf08637d
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-12-14 03:01:59 +00:00
Nextcloud bot
756f2d3b7c
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-12-13 03:02:55 +00:00
Marcel Hibbe
931a4c772c
Merge pull request #4532 from nextcloud/backport/4493/stable-20.1
[stable-20.1] display conversation avatar for open conversations
2024-12-10 10:04:28 +01:00
sowjanyakch
fe45c13a54 remove unused models
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-12-10 08:42:08 +00:00
sowjanyakch
e8f5afb2a5 refactor code - remove comments
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-12-10 08:42:08 +00:00
sowjanyakch
53a2ee51f0 suppress lint warning for invalid string format
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-12-10 08:42:07 +00:00
sowjanyakch
d2f8be984e ktlintFormat
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-12-10 08:42:07 +00:00
sowjanyakch
6037eefe18 Modify Adapter and ListOpenConversationsActivity
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-12-10 08:42:07 +00:00
sowjanyakch
f1051b5f52 Modify ViewModel
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-12-10 08:42:07 +00:00
sowjanyakch
aab4591f83 Use correct model
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-12-10 08:42:07 +00:00
Andy Scherzinger
490a93bb3f style(detekt): shorten long methods
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-12-10 08:13:31 +00:00
Andy Scherzinger
bd84db0118 style(detekt): Shorten complex conditions
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-12-10 08:13:31 +00:00
Nextcloud bot
e1d283d44a
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-12-10 03:02:19 +00:00
Nextcloud bot
4b82047bab
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-12-08 03:32:17 +00:00
Nextcloud bot
140208ee6c
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-12-07 03:10:01 +00:00
Andy Scherzinger
7ba8bf9b3d style(detekt): Comment on all EmptyFunctionBlock cases
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-12-06 12:00:58 +00:00
Andy Scherzinger
a0d00857e5 style(detekt): Accept current use of TooGenericExceptionCaught cases
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-12-06 12:00:58 +00:00
Andy Scherzinger
d39ccaeae2 style(detekt): Ignore TooGenericExceptionThrown on test stub implementation
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-12-06 12:00:58 +00:00
Andy Scherzinger
e4807c4972 style(detekt): Replace MagicNumbers with constants
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-12-06 12:00:57 +00:00
Nextcloud bot
4f67006621
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-12-06 03:18:30 +00:00
Nextcloud bot
0633b6125d
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-12-05 03:37:45 +00:00
Nextcloud bot
e32caad0e4
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-12-04 03:36:16 +00:00
Andy Scherzinger
0c1f3a5131
Merge pull request #4517 from nextcloud/backport/4389/stable-20.1
[stable-20.1] User now knows if no offline messages are saved when entering a conversation
2024-12-03 11:20:10 +01:00
Marcel Hibbe
f0a6c38ff9 fix Duplicate ids in xml
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-12-03 09:51:23 +00:00
rapterjet2004
d22e953576 Shows if no offline messages are saved
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
2024-12-03 09:51:23 +00:00
Andy Scherzinger
900b88e330 style(icon): Update Mail/Group avatar
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-12-03 09:43:58 +00:00
Andy Scherzinger
8a62470978 style(icon): Update Link avatar and general link icon
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-12-03 09:43:58 +00:00
Andy Scherzinger
10c36488ab feat(conversations): Add federation room badge
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-12-03 09:19:00 +00:00
Andy Scherzinger
cdb58315ad feat(conversations): Add public room badge
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-12-03 09:19:00 +00:00
Nextcloud bot
f899278728
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-12-03 03:01:23 +00:00
Marcel Hibbe
f383370f79
bump version to 20.1.0
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-12-02 19:31:26 +01:00
Nextcloud bot
2b5b3d9669
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-12-02 18:25:56 +00:00
Nextcloud bot
dc82454a97
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-12-02 18:05:24 +00:00
Marcel Hibbe
ef0637cd85 reformat code + fix lint warnings
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-12-02 16:53:17 +00:00
Marcel Hibbe
d0aa408758 new notification warner
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-12-02 16:53:16 +00:00
Andy Scherzinger
c29fe35d8a style(lint): make use of ResourceCompat
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-12-02 16:50:39 +00:00
Andy Scherzinger
f714f76ccb style(detekt): Improve score
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-12-02 16:50:39 +00:00
Andy Scherzinger
41d0064183 style(ktlint): Fix formatting
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-12-02 16:50:39 +00:00
Nextcloud bot
0166b4fe22
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-12-02 03:02:05 +00:00
Nextcloud bot
ae44d98f7d
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-11-30 03:01:20 +00:00
Nextcloud bot
2cceb07a53
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-11-29 02:57:54 +00:00
Marcel Hibbe
299d88038b fix guests without name for Mention autocomplete
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-28 16:28:25 +00:00
Marcel Hibbe
c9bf41b823 fix guests without name in lastMessage view in conversation list
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-28 16:28:25 +00:00
Marcel Hibbe
bf6480490a fix empty guest names for chat viewholders
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-28 16:28:25 +00:00
Marcel Hibbe
7c7609b14a fix empty guest names in conversation info list
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-28 16:28:25 +00:00
Marcel Hibbe
e0d3cb58ca fix to handle whitespaces for guest avatars
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-28 16:28:25 +00:00
Nextcloud bot
69fab46597
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-11-28 11:14:59 +00:00
Nextcloud bot
45574cd34f
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-11-28 03:04:43 +00:00
Nextcloud bot
3c5494ded8
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-11-27 10:30:58 +00:00
Marcel Hibbe
2a6a57f1cd
bump version to 20.1.0 RC1
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-26 22:19:46 +01:00
Marcel Hibbe
8e08d9279d
remove unused method
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-26 21:48:51 +01:00
Marcel Hibbe
16d03a69ff
show guest "first letter" avatars in chat
also:
create ChatMessageUtils as helper for the ViewHolders in this case.
Could help to avoid duplicated code until there is a clear inheritance solution.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-26 21:48:51 +01:00
Marcel Hibbe
199ba4be34
add grey avatar with first letter of email-guest in call view
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-26 21:48:51 +01:00
Marcel Hibbe
c75cf2fe20
add grey avatar with first letter of email-guest
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-26 21:48:51 +01:00
Marcel Hibbe
cb3614da34
remove android version check
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-26 21:48:51 +01:00
Marcel Hibbe
b71218973e
show simple person icon when conversation-info when guest did not set any name
However this is only possible for the conversation info.
In other parts, the info if a guest changed the name or not is not available (like in the chat or in autocomplete)

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-26 21:48:50 +01:00
Marcel Hibbe
d95c1c605f
set guest avatar for guests and emailguests in autocomplete
knowing if a guest did not change it's name is not possible at this point, so we also show the letter "G" if it's name is guest

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-26 21:48:50 +01:00
Marcel Hibbe
02d0a65909
enable to set mention chip for email guests 2
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-26 21:48:50 +01:00
Marcel Hibbe
ca9e2d4932
enable to set mention chip for email guests
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-26 21:48:50 +01:00
Marcel Hibbe
6ede78eb09
remove additional information from autocomplete
objectId would be some long random string for email guests. displaying them would not make sense. It's also not done on web.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-26 21:48:50 +01:00
Marcel Hibbe
8a3f779fdc
show initials avatar for email guests if displayname is set
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-26 21:48:49 +01:00
Marcel Hibbe
6e3188f1df
display email address of guest users for moderators
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-26 21:48:49 +01:00
Marcel Hibbe
47004b8f4b
Merge pull request #4471 from nextcloud/issue-4452-search-join-conversation
Added a search bar to the "Join Open Conversations" screen
2024-11-26 19:58:18 +01:00
Marcel Hibbe
6dc52fe27d
change strings in notification settings
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-26 15:24:49 +01:00
Marcel Hibbe
c7fd94ba9b
reformat code
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-26 15:24:49 +01:00
Marcel Hibbe
8e6072bbc7
extract blink method, move server notification app hint to gplay block
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-26 15:24:49 +01:00
Marcel Hibbe
6f6c1896ed
add check if server notification app is installed for current user
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-26 15:24:49 +01:00
Marcel Hibbe
c559c6b0b4
blink notification channels
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-26 15:24:48 +01:00
Marcel Hibbe
fa70cffd83
blink items when opened by notification warning
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-26 15:24:48 +01:00
Marcel Hibbe
a9ec8c2eed
fix to hide notification setting for generic build variant
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-26 15:24:48 +01:00
Marcel Hibbe
c2b99c591f
disable sound notification settings when main notification permission is is not permitted.
Otherwise user can't enable them anyway

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-26 15:24:48 +01:00
Marcel Hibbe
b63325ae8d
open full notification settings from talk settings as fallback if dialog for asking direct permission was not shown by android
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-26 15:24:48 +01:00
Marcel Hibbe
b1e550b049
Show a warning if notifications are not allowed or battery optimization is enabled
Open notification settings when click on warning

Also, still offer to enable notifications and disable battery optimization on first install

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-26 15:24:47 +01:00
Marcel Hibbe
716dfa6577
Add permanent hint when battery optimization is not ignored
Also add an option to not show the hint, when user doesn't want to ignore battery optimization.

Only show these features when gplay services are available. Otherwise don't show them as it would pretend notifications would be possible without gplay.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-11-26 15:24:47 +01:00
sowjanyakch
fdbff4a8e6
use safe call operator
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-26 12:12:17 +01:00
sowjanyakch
2da78f69f2
ktlintFormat
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-26 12:12:17 +01:00
sowjanyakch
8bf7fd8553
show backup status when only when status message is previously set
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-11-26 12:12:17 +01:00
Nextcloud Android Bot
e47b5aa102 Weekly 20.1.0 Alpha 15 2024-11-25 03:12:23 +00:00
Nextcloud bot
2c90a1eaf1
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-11-24 03:05:03 +00:00