Marcel Hibbe
64d0f0e2cd
Fix to parse OpenAI translations.
...
The parsed result was without quotes which resulted in error:
Unterminated object at character 21 of [{fromLabel=English (US),
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2023-06-30 07:30:18 +02:00
Marcel Hibbe
817ea1ab64
Avoid to send conversation and user via intent
...
sending too much data via intent always is a bad pattern which can lead to TransactionTooLargeException.
When OpenAI translation is enabled, the capabilities contain a ton of translation combinations. These capabilities are contained in 'currentUser' as well in 'selectedConversation'. So, TransactionTooLargeException was thrown.
this PR:
- avoids passing too much data as parcelables in intents (esp. conversation and user)
- introduces MVVM patterns to load required data (esp conversation) from backend (for now via requests, in the future from database first)
- introduces ConversationModel which is created out of the Conversation json model
- loads user data via injection when possible
- creates some quickfixes in ConversationBottomDialog, EntryMenuController and OperationsMenuController.
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2023-06-30 07:30:18 +02:00
Julius Linus
bfbf46df77
quick conversation info bug fix
...
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
2023-06-29 20:59:47 +02:00
Julius Linus
fa5e0fb01d
Can now open preview messages in the files app in message actions
...
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
2023-06-29 09:54:02 +02:00
rapterjet2004
42c55cd5ac
trivial formatting change to test checks
...
Signed-off-by: Julius Linus julius.linus@nextcloud.com
2023-06-27 15:01:59 +02:00
rapterjet2004
63b9e41a16
or former one to one
...
Signed-off-by: Julius Linus julius.linus@nextcloud.com
2023-06-27 15:01:59 +02:00
rapterjet2004
d24bd9d6a2
WIP one-to-one behaves like mentioned
...
Signed-off-by: Julius Linus julius.linus@nextcloud.com
2023-06-27 15:01:59 +02:00
rapterjet2004
943286ddd6
migrating from material preferences to native, squashed commit
...
Signed-off-by: Julius Linus julius.linus@nextcloud.com
2023-06-27 14:53:18 +02:00
Andy Scherzinger
1b43d18566
finetune preferences for M3 - DRAFT
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-06-27 14:53:18 +02:00
rapterjet2004
76f5fe91f6
migrating from material preferences to native, squashed commit
...
Signed-off-by: Julius Linus julius.linus@nextcloud.com
2023-06-27 14:53:18 +02:00
rapterjet2004
8158eebb4f
Bug fix of issue 2780
...
Signed-off-by: Julius Linus julius.linus@nextcloud.com
2023-06-23 14:31:08 -05:00
rapterjet2004
8a6fc63d56
WIP filtered items persist on resumed
...
Signed-off-by: Julius Linus julius.linus@nextcloud.com
2023-06-21 12:34:31 +02:00
Marcel Hibbe
fdde5d2667
add option to list open conversations
...
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2023-06-19 23:42:50 +02:00
Marcel Hibbe
527ba28651
Fix to show other errors than HttpException (e.g. ConnectException)
...
Fix theming
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2023-06-19 15:10:21 +02:00
Andy Scherzinger
5a25aa1450
remove unused code
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-06-15 14:48:57 +02:00
Andy Scherzinger
0246b584fb
Optimize themeing/layout for filtering
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-06-15 14:48:56 +02:00
rapterjet2004
73dce166b9
WIP filter conversations feature, added close button + detekt issues
...
Signed-off-by: Julius Linus julius.linus@nextcloud.com
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-06-15 14:48:56 +02:00
rapterjet2004
715cbedcfe
WIP filter conversations feature, implemented small fixes + license
...
Signed-off-by: Julius Linus julius.linus@nextcloud.com
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-06-15 14:48:56 +02:00
rapterjet2004
ffdae1552d
WIP filter conversations feature, can now search through filter
...
Signed-off-by: Julius Linus julius.linus@nextcloud.com
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-06-15 14:48:56 +02:00
rapterjet2004
a60fce05cd
WIP filter conversations feature, UI more responsive
...
Signed-off-by: Julius Linus julius.linus@nextcloud.com
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-06-15 14:48:56 +02:00
rapterjet2004
cc0fd41c90
WIP filter conversations feature, last minute ui changes
...
Signed-off-by: Julius Linus julius.linus@nextcloud.com
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-06-15 14:48:56 +02:00
rapterjet2004
b4719bcad3
WIP filter conversations feature, functionality finished
...
Signed-off-by: Julius Linus julius.linus@nextcloud.com
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-06-15 14:48:55 +02:00
rapterjet2004
d209083700
WIP filter conversations feature, UI finished
...
Signed-off-by: Julius Linus julius.linus@nextcloud.com
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-06-15 14:48:43 +02:00
Andy Scherzinger
e1da473f72
comment on empty function block
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-06-15 11:07:22 +02:00
Marcel Hibbe
cc391d889a
check if talk is available at server selection and if version is valid
...
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2023-06-12 09:49:25 +02:00
Marcel Hibbe
deb512af91
fix to show error message on server selection screen
...
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2023-06-12 09:49:24 +02:00
Marcel Hibbe
7a30940142
handle 426 upgrade required / handle 503 Service Unavailable (+maintenance mode)
...
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2023-06-09 14:31:30 +02:00
Marcel Hibbe
7f51d45e9a
Align typing indicator to new concept
...
# Send start/stop typing
Send "Typing" every 10 sec when there was a change
Send stop typing:
- when input is deleted
- when there was no input during the 10s timer
- when on leaving room
# Receive start/stop typing
Clear typing for participant after 15s if no start typing-message was received.
Use userId instead sessionId to manage typing participants. This ensures participants are not shown multiple times when using multiple devices with the same user (multisession). To get the userId via websocket, SignalingMessageReceiver and WebSocketInstance had to be modified to pass the CallWebSocketMessage in case the signalingMessage.type is related to typing. Not sure if this is the best solution but didn't find any other way.
Typing is not handled when the userId is of the own user (this could happen when using multiple devices)
In case userId is null (which happens for guests), their sessionId is used as key for the typingParticipants map.
# Other
Disable setting for typing indicator when no HPB is used + Avoid crash in chat when no HPB is used.
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2023-06-02 15:35:16 +02:00
Andy Scherzinger
832e2178e3
codacy: Avoid unused private fields such as 'TAG'
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-06-01 22:35:08 +02:00
Andy Scherzinger
7ad8e304e2
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>
2023-06-01 22:27:43 +02:00
Andy Scherzinger
d4379f3c89
codacy: Unused import
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-06-01 22:27:42 +02:00
Andy Scherzinger
c084d63944
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>
2023-06-01 19:10:35 +02:00
Marcel Hibbe
bd23edc9a5
check if location of cached file makes sense
...
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2023-06-01 10:36:10 +02:00
Marcel Hibbe
d49441e036
get last part after "/" also for content uris
...
note that this doesn't prevent path traversal as uris can be decoded
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2023-06-01 10:30:25 +02:00
rapterjet2004
79f317d1e6
issue-3019
...
Signed-off-by: Julius Linus julius.linus@nextcloud.com
2023-05-26 13:20:22 -05:00
Marcel Hibbe
d127c5401a
fix new onBackPressed handling
...
this commit fixes bugs from d3056ff2825e53040ca49b86b84f91f73a3eb11c and 1185dcf17a99ca62efd32f8a53c298ec4fd6c4d0
fix onBackPressed handling to use OnBackPressedCallback
remove unnecessary onBackPressedCallback's when they only finished the activity
replaced some finishAffinity methods with finish
...
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-05-24 15:42:09 +02:00
Ezhil Shanmugham
dff9ea5651
Fixed intendation Signed-off-by: Ezhil Shanmugham ezhil56x.contact@gmail.com
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-05-24 15:42:09 +02:00
Ezhil Shanmugham
64fa8e830b
Made suggested changes in FullScreenImageActivity.kt, ConversationsListActivity.kt and in some files Signed-off-by: Ezhil Shanmugham ezhil56x.contact@gmail.com
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-05-24 15:42:09 +02:00
Ezhil Shanmugham
d4a4472968
Removed mistakenly added authorship Signed-off-by: Ezhil Shanmugham ezhil56x.contact@gmail.com
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-05-24 15:42:09 +02:00
Ezhil Shanmugham
8348792313
Fixed ktlint and detekt errors
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-05-24 15:42:09 +02:00
Ezhil Shanmugham
7b5caf5007
fixed deprecated onBackPressed Issue-#2961
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-05-24 15:42:04 +02:00
rapterjet2004
93da3a9c65
Making reply length a const
...
Signed-off-by: Julius Linus <julius.linus@nextcloud.com>
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-05-24 10:40:28 +02:00
rapterjet2004
a926c27ae7
working on issue 3026
...
Signed-off-by: Julius Linus <julius.linus@nextcloud.com>
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-05-24 10:40:28 +02:00
Andy Scherzinger
984c8bff5c
further improve formatting
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-05-24 10:19:36 +02:00
Andy Scherzinger
c6e082c6b1
Replace any magic numbers detekt-ed
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-05-24 09:47:27 +02:00
Andy Scherzinger
f7e5881d87
Fix any detekt formatting issues
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-05-24 09:38:56 +02:00
Andy Scherzinger
5ec013143f
Migrate theme API calls - away from deprecated ones
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-05-24 09:08:18 +02:00
Julius Linus
528f1fd431
Merge branch 'master' into translate-message-mvvm-impl
...
Signed-off-by: Julius Linus <69230048+rapterjet2004@users.noreply.github.com>
2023-05-23 08:07:40 -05:00
Marcel Hibbe
0eac3a2d11
fix codacy warning
...
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes.
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2023-05-23 12:10:18 +02:00
Marcel Hibbe
9a76ce7ccd
fix to close gap between typing indicator and message input
...
otherwise chat content was visible in between
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2023-05-23 12:06:02 +02:00