Commit Graph

125 Commits

Author SHA1 Message Date
Andy Scherzinger
4b0daa6978
Fix kotlin fomatting
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-03-17 14:41:36 +01:00
Giacomo Pacini
2deefb3c0a
Merge remote-tracking branch 'upstream/master' 2024-03-13 18:50:32 +01:00
Giacomo Pacini
064c3809b0
removed some comments, modified indentation, moved some strings to companion object
Signed-off-by: Giacomo Pacini <giacomopacini98@gmail.com>
2024-03-13 18:47:51 +01:00
Giacomo Pacini
ca5a379883
save audio message id and position when activity is destroyed,
also restores view position to that message and then resumes audio playback if was playing.
it allows to continue playing audio on screen rotation.

Signed-off-by: Giacomo Pacini <giacomopacini98@gmail.com>
2024-03-13 18:47:51 +01:00
Giacomo Pacini
b44641c0c7
removed stopMediaPlayer method call in onStop(),
so that audio continues playing when activity in background.
if backpressed, stops mediaplayer

Signed-off-by: Giacomo Pacini <giacomopacini98@gmail.com>
2024-03-13 18:47:50 +01:00
Marcel Hibbe
625de657d4
hide features if federation is not available
+ add capability queries (not yet used)

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-03-12 10:52:58 +01:00
parneet-guraya
3866beed92
fix remind me later dialog
Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
2024-03-11 15:28:38 +01:00
Julius Linus
a74c8c552d Popup bubbles now show up + Fixed bugs with images + added new string resource
Signed-off-by: Julius Linus <julius.linus@nextcloud.com>
2024-03-05 09:25:56 -06:00
parneet-guraya
82a46572d9
wrap inside scroll view
Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
2024-03-05 10:48:57 +01:00
parneet-guraya
1881676538
use default constructor for fragment
Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
2024-03-05 10:48:56 +01:00
Marcel Hibbe
754b825096
pass spreedCapabilities instead user to CapabilitiesUtil
To support federated rooms, capabilities have to be checked from the room which now also has capabilities.
If room is not federated, capabilities fromuser are still checked.
This is why CapabilitiesUtil had to be refactored to accept SpreedCapabilities which can come from room or user.

Other than that, many other changes were made as a result of this change.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-03-01 11:25:11 +01:00
Julius Linus
dcc8fc6954
Major refactoring, implements ChatActivity in MVVM to prepare for federation and offline chatting.
Signed-off-by: Julius Linus <julius.linus@nextcloud.com>
2024-02-27 17:52:30 +01:00
Marcel Hibbe
9a4bf14e09
Merge remote-tracking branch 'origin/master' into feature/edit_messages 2024-02-16 17:09:03 +01:00
sowjanyakch
861b565c01 Added date to editor details and changes related to design.
Signed-off-by: Sowjanya Kota<sowjanya.kch@gmail.com>
2024-02-14 16:08:13 +01:00
sowjanyakch
8d4c0fb57c Minor UI improvements
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-02-13 11:47:39 +01:00
Marcel Hibbe
6708aeebad
fix to show message as edited after editing on own device
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-02-09 11:16:21 +01:00
Marcel Hibbe
4e4cb26862
fix to update adapter for "edited messages" by system message
This will update the message when an edit was made on other devices.
So the system message will trigger that you are informed about a change. But instead to show the system message, you use it's information to immediately update the adapter.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-02-09 11:14:00 +01:00
sowjanyakch
683f924556 Add editor name and message timestamp to MessageActionsDialog
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-02-09 10:05:54 +01:00
parneet-guraya
86cd617c6a
handle becoming noisy manually
Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
2024-02-07 15:35:44 +05:30
parneet-guraya
91d5217b1e
handle audio focus and becoming noisy
Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
2024-02-07 15:35:42 +05:30
sowjanyakch
d27c7a6212 UI improvements 2024-02-05 22:46:30 +01:00
sowjanyakch
eb27b7039f Update Edit Message 2024-02-05 22:46:30 +01:00
sowjanyakch
80c843227e System Messages and Error handling 2024-02-05 22:46:30 +01:00
sowjanyakch
718369d80e Edit inputText view refactoring 2024-02-05 22:46:30 +01:00
sowjanyakch
5ecfd3cd3b Basic Edit feature 2024-02-05 22:46:30 +01:00
Sowjanya Kota
96a244408e Checking Edit Capability 2024-02-05 22:46:29 +01:00
Julius Linus
d45277beaf
Impl "Add to Notes Action"
- Note to self option should only appear if conversation is available
- Added ic_edit_note_24_xml
- Implemented MVVM functions for cleaner data flow
- Added the option to the XML
- Works for Voice Messages
- Works for Files(and Gifs) + captions
- Works for GeoLocation Messages
- Added SnackBar

Signed-off-by: Julius Linus <julius.linus@nextcloud.com>
2024-02-01 12:18:06 +01:00
Julius Linus
30c6ad5ab6
save cursor position
Signed-off-by: Julius Linus <julius.linus@nextcloud.com>
2024-01-15 15:16:32 +01:00
Sowjanya Kota
ffda98632e
Share message text to other apps
Signed-off-by: Sowjanya Kota <sowjanya.kch@gmail.com>
2024-01-04 11:18:24 +01:00
Andy Scherzinger
9621f943f1
theme background for dialog-based BottomSheet
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-12-15 09:55:55 +01:00
Andy Scherzinger
59e8f4b550
ktlint: No comment expected at this location
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-12-05 16:31:34 +01:00
Andy Scherzinger
88970c59a5
ktlint: Newline expected before expression body
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-12-05 16:26:33 +01:00
Andy Scherzinger
627e9d5c20
ktlint: No whitespace expected between opening parenthesis and first parameter name
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-12-05 16:17:31 +01:00
Andy Scherzinger
f2b86a9d86
ktlint: Enum entry should start on a separate line
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-12-05 16:01:00 +01:00
Julius Linus
2adad16914
small adjustments
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
2023-11-29 11:38:26 +01:00
Julius Linus
b1568e7f49
- Fixed bug with occasional crash with stop
- Implement MediaRecorderState handling
- Fixed lifecycle bug - recording and locked UI now ends after app exits
- Saves Waveform to storage after initial loading
- Fixes File caption crashes
- A couple other bugs

Signed-off-by: Julius Linus <julius.linus@nextcloud.com>
2023-11-29 11:38:25 +01:00
Marcel Hibbe
591d6dc3e8
remove conductor
- replace remaining controllers with activities
- remove conductor lib
- modify some code related to account management and conductor

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2023-11-23 13:26:01 +01:00
Julius Linus
5e362ae129
file captions
- Added dialog_file_attachment_preview.xml
- Added FileAttachmentPreviewFragment.kt
- Edited ChatActivity to add captions to uploaded files, also refactored some code
- Edited the Outgoing, Incoming, and Generic Preview holders to have a caption
- Fixed some bugs with RemoteFileBrowser

Signed-off-by: Julius Linus <julius.linus@nextcloud.com>
2023-11-16 15:46:18 +01:00
Marcel Hibbe
640007b421
followup changes to save file feature
- extract dialog to SaveToStorageDialogFragment
- add ability to save files of other mimetypes than images
- use MaterialAlertDialogBuilder
- save files to matching folders depending on mimeType
- show toast
- change download icon

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2023-11-08 11:39:19 +01:00
Marcel Hibbe
d5672d6434
fix linebreak in strings.xml + fix lint warnings
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2023-11-08 09:20:36 +01:00
fariba khandani
dd9eb35e72 saveFiles to internal storage 2023-11-07 13:31:58 +01:00
Julius Linus
3af7de2e78
Note to Self
- Can not add participants to the room
- Can not allow guests
- Can not make read-only
- Can not make listable
- Can not change permissions
- Can not set lobby
- Can not enable SIP
- Can not configure breakout rooms
- Can not call
- Custom Avatar

Signed-off-by: Julius Linus <julius.linus@nextcloud.com>
2023-10-24 13:57:03 +02:00
Julius Linus
79b366c5ba
Refactoring AudioUtils
- Fixes a bug with the processing taking to long
- Added a bunch of comments, to make maintaining this more easier
- Added LifeCycle Awareness

Signed-off-by: Julius Linus <julius.linus@nextcloud.com>
2023-10-17 11:10:45 +02:00
Julius Linus
6db2f34a25 Show Accept Call Button in Chat
- added call_started_message.xml
- added CallStartedViewHolder.kt
- added CallStartedMessageInterface.kt
- Both join audio and join video buttons
- Gets destroyed if call ends, persists despite state changes

Signed-off-by: Julius Linus <julius.linus@nextcloud.com>
2023-10-02 09:11:28 -05:00
Smarshal21
b652e45edb
Fixed deletion of voice, video, image, contact and location messages
Signed-off-by: Smarshal21 <lcb2021048@iiitl.ac.in>
2023-10-02 11:00:51 +02:00
Marcel Hibbe
e4571be0ed
fix endless loop when opening urls and files app is not installed.
Without this fix, the ChatActivity would be started again in FileViewerUtils. There was an endless loop between ChatActivity and FileViewerUtils because of the wrong context.
Instead to open the browser, the app did nothing or freezed.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2023-09-27 11:31:15 +02:00
tobiasKaminsky
838b14b9dc
extracted and created tests
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
2023-09-20 18:11:56 +02:00
Andy Scherzinger
2e678252bd
Implement first steps for sending file share links to files client
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-09-20 15:51:05 +02:00
Julius Linus
c78cb1bff5 fixed bug with audio messages not sending after pausing in continuous recording mode
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
2023-09-17 17:29:45 -06:00
Marcel Hibbe
abb3389308
fixups and refactoring for sharing by context menu
When sharing a file by context menu that is not downloaded yet, do not open it after download but just share it. This is done by 'openWhenDownloaded' variable in chatMessage.

Pass a method to downloadFileToCache, so it's more flexible what to do when download finished.

Add some minor changes
2023-09-04 11:08:20 +02:00