Commit graph

1348 commits

Author SHA1 Message Date
Andy Scherzinger
f87815753d
Merge pull request #1261 from nextcloud/codacy
Codacy
2021-05-18 09:34:23 +02:00
Andy Scherzinger
ec5a98e22b
proper indentation
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2021-05-17 15:19:12 +02:00
Andy Scherzinger
f540aa9305
improve logging, empty method documentation and new codacy issues
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2021-05-17 14:56:46 +02:00
Andy Scherzinger
7bd6076795
codacy: improve identation
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2021-05-17 14:30:16 +02:00
Andy Scherzinger
2ffdd5199c
housekeeping: removed any use of org.jetbrains.annotations
(including a java-to-kotlin rewrite)

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2021-05-17 14:21:21 +02:00
Andy Scherzinger
7563dc5fba
codacy: Avoid unused local variables such as 'finalCredentials'.
Use correct annotation

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2021-05-17 13:48:53 +02:00
Andy Scherzinger
8cb0293e83
codacy: Generics names should be a one letter long and upper case.
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2021-05-17 13:40:55 +02:00
Andy Scherzinger
dcadf5d1a3
codacy: NoSemicolons
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2021-05-17 13:39:09 +02:00
Andy Scherzinger
4999916f27
codacy: Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes.
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2021-05-17 13:38:05 +02:00
Andy Scherzinger
0bc3be1b6e
codacy: Avoid unused imports
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2021-05-17 13:35:34 +02:00
Andy Scherzinger
cb455a7104
Add annotation where needed
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2021-05-17 13:11:50 +02:00
Andy Scherzinger
443cf8b227
user proper activity context to grab themed color for item header for mention items
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2021-05-17 13:11:44 +02:00
Andy Scherzinger
d8b167ebfa
spotbugs: improve exception handling
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2021-05-14 17:05:02 +02:00
Joas Schilling
4790e7b7e4
Fix "NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE" SpotBugs complaint
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-14 14:40:28 +02:00
Joas Schilling
16ca03cb5c
Adjust title depending on the view
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-14 14:20:30 +02:00
Joas Schilling
8f7873ab9b
Add circles support
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-14 14:20:30 +02:00
Joas Schilling
98fa8642d3
Allow to add emails as particpants
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-14 14:19:22 +02:00
Joas Schilling
d06935fd78
Fix ktlint
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-14 14:06:35 +02:00
Joas Schilling
a44e714f13
Fix position and icon of the PopupMenu
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-14 13:54:35 +02:00
Joas Schilling
7bbe954d47
Reply privately
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-14 13:47:28 +02:00
Andy Scherzinger
ed2f53bff4
make popup menu respect the defined style definition by using the right context and referencing the style definition
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2021-05-14 13:27:39 +02:00
Joas Schilling
39a848afa4
Fix participant list call state
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-14 13:27:37 +02:00
Marcel Hibbe
8fc963290b
fix navigation bar color for call screen.
remove blue launcher screen for calls.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2021-05-14 11:14:32 +02:00
Joas Schilling
213d11358a
Fix "own message" detection with guests
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-12 16:21:55 +02:00
Joas Schilling
97117eb90c
Use the correct signaling information and user+ticket for "Join via link" as well
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-12 16:21:55 +02:00
Joas Schilling
c335a69413
Connect the buttons with the actions also for guests
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-12 16:21:54 +02:00
Joas Schilling
932afc2b58
Remove duplicate call
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-12 16:21:54 +02:00
Joas Schilling
01813d4165
Use injected capabilities
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-12 16:21:54 +02:00
Joas Schilling
2fd0933383
Remove unused capability checking
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-12 16:21:54 +02:00
Joas Schilling
a4cc7f2816
Remove non reachable "initiateCall()"
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-12 16:21:54 +02:00
Joas Schilling
b98ff4c56a
Fix joining a public chat as a guest
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-12 16:21:54 +02:00
Joas Schilling
bc2fadb4c5
Add (read-only for now) description to the conversation info
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-12 14:35:50 +02:00
Andy Scherzinger
dc78f615cb
set proper colors for unread-messages for edge case of theme switch
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2021-05-12 09:15:31 +02:00
Andy Scherzinger
2b44a295a4
add account switcher in search bar
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2021-05-12 09:15:31 +02:00
Joas Schilling
90ad596f90
Merge pull request #1229 from nextcloud/feature/apiv4/calls
[apiv4] ☎️ Calls
2021-05-11 10:37:40 +02:00
Joas Schilling
172d8da1cf
"chat-v2" capability is available since Nextcloud 13
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-11 09:57:05 +02:00
Andy Scherzinger
386ef5dc96
explicitely set header color
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2021-05-10 21:39:09 +02:00
Andy Scherzinger
a5d14a67f8
add mail icon for mail users
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2021-05-10 21:24:24 +02:00
Joas Schilling
72705dbaf5
Fix "calls equals on an enum instance"
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-10 12:36:19 +02:00
Joas Schilling
112a5662ad
Fix null reference when a participant leaves
java.lang.NullPointerException: Attempt to invoke virtual method
'void com.nextcloud.talk.adapters.ParticipantDisplayItem.setAudioEnabled(boolean)'
on a null object reference

Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-10 11:47:09 +02:00
Joas Schilling
79be753493
Fix some more getUserId() calls
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-10 11:35:17 +02:00
Joas Schilling
dde79b5671
Fix joining a call
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-10 11:35:16 +02:00
Joas Schilling
335afb03dd
Test calling with apiv4
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-10 11:35:16 +02:00
Andy Scherzinger
8bb7af4eef
use stringbuilder
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2021-05-09 21:59:59 +02:00
Andy Scherzinger
c91631a642
lint: Set locale
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2021-05-09 21:56:35 +02:00
Andy Scherzinger
ef273cf9ff
rewrite to for-loop due to former dignature collision kotlin1.5<>java8
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2021-05-09 21:54:35 +02:00
Andy Scherzinger
3cb2023680
improve codacy score
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2021-05-09 17:41:56 +02:00
Joas Schilling
d29905d0fa
Split the method to be short *roll eyes*
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-09 17:32:22 +02:00
Joas Schilling
9596e298f2
Deduplicate the subscriber to make the method shorter
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-09 17:32:21 +02:00
Joas Schilling
a1bee6a776
Only show the server host in the account switcher as well
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-05-09 17:32:20 +02:00