Commit Graph

3354 Commits

Author SHA1 Message Date
sowjanyakch
2b24c69cbf System Messages and Error handling
Signed-off-by: Sowjanya Kota <101803542+sowjanyakch@users.noreply.github.com>
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-01-30 09:45:15 +01:00
sowjanyakch
33de105048 Edit inputText view refactoring
Signed-off-by: Sowjanya Kota <101803542+sowjanyakch@users.noreply.github.com>
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
2024-01-25 17:47:21 +01:00
sowjanyakch
337f07abfe Basic Edit feature
Signed-off-by: Sowjanya Kota <101803542+sowjanyakch@users.noreply.github.com>
2024-01-24 14:00:27 +01:00
Sowjanya Kota
d8d1de2f35 Checking Edit Capability
Signed-off-by:Sowjanya Kota <101803542+sowjanyakch@users.noreply.github.com>
2024-01-19 18:12:31 +01:00
parneet-guraya
6f88c8bcbd
add cancel upload functionality
Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
2024-01-17 09:21:32 +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
Marcel Hibbe
f232fda7c1
set string "Build flavor" to translatable=false
otherwise translators won't understand what this is.
As translations were already made a new key was introduced to avoid "Translated Untranslatable" warnings

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-01-15 12:51:29 +01:00
Marcel Hibbe
c7a72aaf4a
add diagnose screen and permission warnings in settings
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-01-12 09:54:28 +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
Sowjanya Kota
ccf6337bb0 Using finish() to handle only forward message back button 2023-12-27 15:34:27 +01:00
Julius Linus
49d65786ea
guarantee AudioUtils stop executing after 3 seconds, sharp, regardless of state of MediaCodec
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
2023-12-22 16:03:46 +01:00
tobiasKaminsky
a77ad7bf74 Add WebAuthN support
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
2023-12-18 09:49:00 +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
Marcel Hibbe
8507e96bc5
Merge pull request #3502 from nextcloud/bugfix/3491/fixErrorWhenDecliningRecConsent
avoid error when declining recording consent
2023-12-05 18:57:35 +01:00
Andy Scherzinger
12a1b7e6f8
ktlint: Property name should use the screaming snake case notation when the value can not be changed
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-12-05 16:50:58 +01:00
Andy Scherzinger
5356edf4a9
ktlint: Empty parentheses in function call followed by lambda are unnecessary
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-12-05 16:45:24 +01:00
Andy Scherzinger
565d0cf61b
ktlint: statement fits in a single line
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-12-05 16:45:02 +01:00
Andy Scherzinger
3f911965bd
ktlint: Property name should start with a lowercase letter and use camel case
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-12-05 16:37:53 +01:00
Andy Scherzinger
d7f8d1ecb2
ktlint: Single space expected between colon and return type
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-12-05 16:35:43 +01:00
Andy Scherzinger
9395a35af6
ktlint: Newline expected after opening parenthesis
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-12-05 16:34:54 +01:00
Andy Scherzinger
67b2752360
ktlint: Expected a single space
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-12-05 16:32:21 +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
29db97c8bc
ktlint: Missing newline before/after '{'
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-12-05 16:30:25 +01:00
Andy Scherzinger
ae9c092997
ktlint: A comment in a 'value_argument_list' is only allowed when placed on a separate line
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-12-05 16:29:33 +01:00
Andy Scherzinger
f2da9b93de
ktlint: First line of body expression fits on same line as function signature
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-12-05 16:28:49 +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
Marcel Hibbe
6ac9fa5fff
avoid error when declining recording consent
When declining recording consent, 404 might be returned when leaving the call (because the call was not joined before).
It might not be the best option to handle this via onError, but for the moment (18.0.0 release) it's the most robust/lowest-risk solution without to change some state handling to check if the call was joined).
finish was added which makes sense anyway, but for declining recording consent the error snackbar was removed.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2023-12-05 16:20:28 +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
Marcel Hibbe
119310ecc7
Add fixes and changes to push handling
- Fix injection in GetFirebasePushTokenWorker.
injection was not setup correctly in GetFirebasePushTokenWorker so the appPreferences were null. This resulted in the invinite loading screen during account setup if somehow onNewToken did not set the token.

- avoid to register push on every load of ConversationList.

- call GetFirebasePushTokenWorker instead of PushRegistrationWorker to make sure the firebase token is set(if onNewToken somehow fails to set it). Other than that, only call PushRegistrationWorker directly in NCFirebaseMessagingService as there the token is set.

- add logging

- trigger GetFirebasePushTokenWorker daily with periodical worker (instead monthly), and combine this with PushRegistrationWorker as this is defined inside GetFirebasePushTokenWorker

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2023-12-01 13:35:53 +01:00
Julius Linus
1efa14ebae
Fix wrong url for webinar. Add logging+snackbar for onError
Signed-off-by: Julius Linus <julius.linus@nextcloud.com>
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2023-12-01 13:31:53 +01:00
Marcel Hibbe
cc6f3fff9a
avoid crash when NC notification could not be retrieved
crash:

              E  Failed to get NC notification
                                                                                                    retrofit2.adapter.rxjava2.HttpException: HTTP 404
                                                                                                    	at retrofit2.adapter.rxjava2.BodyObservable$BodyObserver.onNext(BodyObservable.java:57)
                                                                                                    	at retrofit2.adapter.rxjava2.BodyObservable$BodyObserver.onNext(BodyObservable.java:38)
                                                                                                    	at retrofit2.adapter.rxjava2.CallExecuteObservable.subscribeActual(CallExecuteObservable.java:48)
                                                                                                    	at io.reactivex.Observable.subscribe(Observable.java:12284)
                                                                                                    	at retrofit2.adapter.rxjava2.BodyObservable.subscribeActual(BodyObservable.java:35)
                                                                                                    	at io.reactivex.Observable.subscribe(Observable.java:12284)
                                                                                                    	at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96)
                                                                                                    	at io.reactivex.Scheduler$DisposeTask.run(Scheduler.java:608)
                                                                                                    	at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66)
                                                                                                    	at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)
                                                                                                    	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                                                                                                    	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
                                                                                                    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
                                                                                                    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
                                                                                                    	at java.lang.Thread.run(Thread.java:919)
2023-11-30 10:48:11.049  5352-5597  WM-WorkerWrapper        com.nextcloud.talk2                  I  Worker result SUCCESS for Work [ id=f899eadb-9fd0-4bdf-8cdf-a1ea4a1aa11b, tags={ com.nextcloud.talk.jobs.NotificationWorker } ]
2023-11-30 10:48:11.056  5352-5352  AndroidRuntime          com.nextcloud.talk2                  D  Shutting down VM
2023-11-30 10:48:11.058  5352-5352  AndroidRuntime          com.nextcloud.talk2                  E  FATAL EXCEPTION: main
                                                                                                    Process: com.nextcloud.talk2, PID: 5352
                                                                                                    java.lang.IllegalArgumentException: No suitable parent found from the given view. Please provide a valid view.
                                                                                                    	at com.google.android.material.snackbar.Snackbar.makeInternal(Snackbar.java:200)

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2023-11-30 11:44:52 +01:00
Marcel Hibbe
f6b481cea8
translate "no proxy" in settings
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2023-11-29 11:43:18 +01:00
Julius Linus
2adad16914
small adjustments
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
2023-11-29 11:38:26 +01:00
Julius Linus
b5f49ccfaa
fixed bug - Note to Self Now allows messages to expire and be deleted
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
2023-11-29 11:38:25 +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
23ea4d8803
remove unnecessary code
(seemed to be caused by c&p)

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2023-11-27 14:10:22 +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
Marcel Hibbe
fce209695a
close Call notification when onError is triggered.
How to test:
add

.doOnNext {
	throw (RuntimeException("Exception!!!!!!!!!!!!!!!!!!!!!"))
}

after
.subscribeOn(Schedulers.io())

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2023-11-23 12:44:03 +01:00
Marcel Hibbe
423ce97b4e
Fix to delete user when unregister for notifications failed
Whenever there was an error when unregistering from notifications, the user was not deleted.
This could lead to multiple bugs.

Furthermore, external signaling server connection and arbitrary storage is now always handled for user deletion, which was not the case before.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2023-11-21 10:35:30 +01:00
Julius Linus
7de77ca073
Adjusting Translation Provider
- Added 4 new model data classes
- Added the new API function to NcApi
- Implemented the changes in the Repository + ViewModel
- Implemented the changes in the Activity
- Added some helper functions to support impl

Signed-off-by: Julius Linus <julius.linus@nextcloud.com>
2023-11-16 16:01:35 +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
Andy Scherzinger
62adb46f49
Merge pull request #3433 from nextcloud/feature/3416/saveFileFollowup
followup changes to save file feature
2023-11-08 15:45:04 +01:00
parneet-guraya
f23075b2dd
update the correct observable
Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
2023-11-08 19:16:42 +05:30
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
Sowjanya Kota
305ec470c8 format code and suppress KtLint CheckResult rule 2023-11-06 15:20:15 +01:00
Sowjanya Kota
ce248a7fc0 hide "unread mention" bubble in search mode 2023-11-06 15:20:15 +01:00
Marcel Hibbe
68ab275efc
Avoid Npe for call with a guest without name
11-02 03:45:20.115 27450 27450 D CallActivity: initGridAdapter
11-02 03:45:20.116 27450 27450 D CallActivity: removeParticipantDisplayItem
11-02 03:45:20.116 27450 27450 D CallActivity: removeParticipantDisplayItem
11-02 03:45:20.119 27450 27450 W MagicWebRTCUtils: No payload types with name H264
11-02 03:45:20.141 27450 27450 W System.err: java.lang.NullPointerException: Parameter specified as non-null is null: method com.nextcloud.talk.activities.CallActiv
ity$OfferAnswerNickProvider$WebRtcMessageListener.onOffer, parameter nick
11-02 03:45:20.141 27450 27450 W System.err:    at com.nextcloud.talk.activities.CallActivity$OfferAnswerNickProvider$WebRtcMessageListener.onOffer(Unknown Source:7
)
11-02 03:45:20.141 27450 27450 W System.err:    at com.nextcloud.talk.signaling.WebRtcMessageNotifier.notifyOffer(WebRtcMessageNotifier.java:99)
11-02 03:45:20.141 27450 27450 W System.err:    at com.nextcloud.talk.signaling.SignalingMessageReceiver.processSignalingMessage(SignalingMessageReceiver.java:746)
11-02 03:45:20.142 27450 27450 W System.err:    at com.nextcloud.talk.activities.CallActivity$InternalSignalingMessageReceiver.process(CallActivity.kt:2707)
11-02 03:45:20.142 27450 27450 W System.err:    at com.nextcloud.talk.activities.CallActivity.receivedSignalingMessage(CallActivity.kt:1889)
11-02 03:45:20.142 27450 27450 W System.err:    at com.nextcloud.talk.activities.CallActivity.receivedSignalingMessages(CallActivity.kt:1865)
11-02 03:45:20.142 27450 27450 W System.err:    at com.nextcloud.talk.activities.CallActivity.access$receivedSignalingMessages(CallActivity.kt:190)
11-02 03:45:20.142 27450 27450 W System.err:    at com.nextcloud.talk.activities.CallActivity$pullSignalingMessages$5.onNext(CallActivity.kt:1768)
11-02 03:45:20.142 27450 27450 W System.err:    at com.nextcloud.talk.activities.CallActivity$pullSignalingMessages$5.onNext(CallActivity.kt:1762)
11-02 03:45:20.142 27450 27450 W System.err:    at io.reactivex.internal.util.HalfSerializer.onNext(HalfSerializer.java:107)
11-02 03:45:20.143 27450 27450 W System.err:    at io.reactivex.internal.operators.observable.ObservableRetryWhen$RepeatWhenObserver.onNext(ObservableRetryWhen.java
:100)
11-02 03:45:20.143 27450 30048 W MagicWebRTCUtils: No payload types with name H264
11-02 03:45:20.143 27450 27450 W System.err:    at io.reactivex.internal.operators.observable.ObservableDoOnEach$DoOnEachObserver.onNext(ObservableDoOnEach.java:101
)
11-02 03:45:20.143 27450 27450 W System.err:    at io.reactivex.internal.operators.observable.ObservableTakeWhile$TakeWhileObserver.onNext(ObservableTakeWhile.java:
88)
11-02 03:45:20.143 27450 27450 W System.err:    at io.reactivex.internal.util.HalfSerializer.onNext(HalfSerializer.java:107)
11-02 03:45:20.143 27450 27450 W System.err:    at io.reactivex.internal.operators.observable.ObservableRepeatWhen$RepeatWhenObserver.onNext(ObservableRepeatWhen.ja
va:100)
11-02 03:45:20.143 27450 27450 W System.err:    at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.drainNormal(ObservableObserveOn.
java:201)
11-02 03:45:20.143 27450 27450 W System.err:    at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.run(ObservableObserveOn.java:255
)
11-02 03:45:20.144 27450 27450 W System.err:    at io.reactivex.android.schedulers.HandlerScheduler$ScheduledRunnable.run(HandlerScheduler.java:124)
11-02 03:45:20.144 27450 27450 W System.err:    at android.os.Handler.handleCallback(Handler.java:938)
11-02 03:45:20.144 27450 27450 W System.err:    at android.os.Handler.dispatchMessage(Handler.java:99)
11-02 03:45:20.144 27450 27450 W System.err:    at android.os.Looper.loop(Looper.java:223)
11-02 03:45:20.144 27450 27450 W System.err:    at android.app.ActivityThread.main(ActivityThread.java:7664)
11-02 03:45:20.144 27450 27450 W System.err:    at java.lang.reflect.Method.invoke(Native Method)
11-02 03:45:20.144 27450 27450 W System.err:    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
11-02 03:45:20.144 27450 27450 W System.err:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
11-02 03:45:20.145 27450 27450 E AndroidRuntime: FATAL EXCEPTION: main

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2023-11-03 10:44:39 +01:00