Tim Krüger
84116e4cb2
Add guests access preferences to conversation info
...
Currently a conversation can be made public via the bottom sheet menu in
the conversation list.
With this commit this is added to the conversation info to align with Talk web
and iOS. The functionality is removed from the bottom sheet menu in the
conversation list.
Resolves : #2134
Signed-off-by: Tim Krüger <t@timkrueger.me>
2022-08-29 18:42:56 +02:00
Andy Scherzinger
fb33b1c52d
add flag for mockito tests with Rx
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2022-07-13 00:22:24 +02:00
Andy Scherzinger
7230f81cf5
Migrate conversations list and next hop controllers to use the room user entity
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2022-07-13 00:22:03 +02:00
Álvaro Brey
7bfc3f60f1
Fix MessageSearchHelperTest after removing user parameter from repository
...
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
2022-06-01 16:49:20 +02:00
Álvaro Brey
eddb90d31b
Message search: avoid passing user entity to repository, inject userProvider instead
...
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
2022-06-01 16:49:20 +02:00
Álvaro Brey
b5d8f6ee95
Implement search in specific chat
...
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
2022-06-01 16:49:19 +02:00
Álvaro Brey
b10ea2f41f
Add unit tests for MessageSearchHelper
...
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
2022-06-01 16:49:19 +02:00
Álvaro Brey
956e6b8fce
ShareUtilsTest: remove date() test
...
Fails, has nothing to do with ShareUtils, and it's testing a third-party library
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
2022-05-27 14:54:02 +02:00
Álvaro Brey
820db1e167
Convert ShareUtils to Kotlin so no TextUtils static mock is needed in tests, and re-enable relevant tests
...
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
2022-05-27 14:40:45 +02:00
Álvaro Brey
fd4b7080cc
DoNotDisturbUtils: refactor to avoid mocking static stuff
...
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
2022-05-27 14:26:00 +02:00
Andy Scherzinger
8ed5432045
Migrate ChatMesage, Conversation and directly linked data classes to kotlin
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2022-05-17 14:42:10 +02:00
Marcel Hibbe
be29459955
fix klint warnings
...
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2022-05-11 16:44:07 +02:00
Marcel Hibbe
bae65ebbe9
rename canPostChatShareItemsDoReaction to hasChatPermission
...
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2022-05-11 16:44:06 +02:00
Marcel Hibbe
cc6f582ee2
check capability and permission to delete message
...
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2022-05-11 16:44:06 +02:00
Marcel Hibbe
d9d6af2b99
add util for permissions
...
util uses bitwise operations to access every single permission via variable
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2022-05-11 16:44:05 +02:00
Tim Krüger
aaa9567c19
Skip test 'ShareUtils#date'
...
The test will be skipped on the CI server because it fails there:
com.nextcloud.talk.utils.ShareUtilsIT > date[android-27(AVD) - 8.1.0] FAILED
java.lang.AssertionError: expected:<1207778138000> but was:<1207785338000>
at org.junit.Assert.fail(Assert.java:88)
Locally the test works fine. For this problem a issue were created.
See: #1737
Signed-off-by: Tim Krüger <t@timkrueger.me>
2021-12-08 14:52:21 +01:00
Tim Krüger
707841ec29
Mock the companion object correctly
...
Signed-off-by: Tim Krüger <t@timkrueger.me>
2021-12-07 09:45:05 +01:00
Tim Krüger
c854d8c3ae
Replace deprecated methods
...
Signed-off-by: Tim Krüger <t@timkrueger.me>
2021-12-07 09:45:05 +01:00
tobiasKaminsky
eb5b6a80d9
dav library test
...
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
2021-09-05 16:56:50 +00:00
Tim Krüger
8468535a1e
Remove unused method and dependency
...
See: commit 4c4c5839
, #1167
Signed-off-by: Tim Krüger <t@timkrueger.me>
2021-07-14 10:17: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
Mario Danic
6a5aaac224
Lobby & Various bugfixes and improvements
...
Includes conversion to Kotlin of some files
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2019-08-30 12:13:33 +02:00
ardevd
fd0866dfc5
test: added unit tests for the DoNotDisturbUtils utility class ( #530 )
...
* test: added unit tests for the DoNotDisturbUtils utility class
Signed-off-by: eho <edvard.holst@gmail.com>
* added Mario's mandatory newline.
Signed-off-by: eho <edvard.holst@gmail.com>
2019-04-23 15:18:22 +02:00
ardevd
0b8b0fa5c4
test: added unit tests for the ShareUtils utility class. ( #524 )
2019-04-11 18:59:14 +02:00
ardevd
b6edab3d59
refactored test names. added requested whitespace
...
Signed-off-by: ardevd <edvard.holst@gmail.com>
2019-04-11 13:24:14 +02:00
eho
d2aa3a7f50
test: added unit tests for the TextMatchers utility class.
...
- Replaced Patterns with PatternsCompat equivalent for unit testing compatibility
- Removed ExampleUnitTest placeholder test class
Signed-off-by: eho <edvard.holst@gmail.com>
2019-04-10 22:07:50 +02:00
AndyScherzinger
9a07f28815
CR: new line
2018-02-22 12:34:34 +01:00
AndyScherzinger
45a145ac50
codacy: Method names should not contain underscores
2018-02-21 22:53:21 +01:00
Mario Danic
05d080b95c
Initial import
...
Signed-off-by: Mario Danic <mario@lovelyhq.com>
2017-10-23 12:40:38 +02:00