Commit graph

91 commits

Author SHA1 Message Date
Benoit Marty
85c8a26f8a
Merge pull request #2901 from element-hq/feature/bma/fixUnregisteringPusherLocalError
Fix unregistering pusher local error
2024-05-23 14:38:07 +02:00
Benoit Marty
3796def1c9 Ignore local errors when unregistering UnifiedPush, to not block switching to another push provider. 2024-05-23 10:29:31 +02:00
Benoit Marty
788d9e0631 No need to use StandardTestDispatcher 2024-05-23 10:20:58 +02:00
Benoit Marty
b716482e43 No need to use advanceTimeBy 2024-05-23 10:19:06 +02:00
Benoit Marty
ce23135e4a Do not fail un-registration if Firebase token is not known. Fixes #2895 2024-05-23 09:53:51 +02:00
Jorge Martín
0639bc6a5b Simplify RegisterUnifiedPushUseCase, fix test 2024-05-23 09:48:32 +02:00
Benoit Marty
b8b66b3570 Add missing import 2024-05-23 09:34:31 +02:00
Benoit Marty
f04253287f Introduce lambdaError instead of using TODO, to handle error when a lambda is invoked and it should not. 2024-05-23 09:12:40 +02:00
Benoit Marty
c71c491302 Clean up 2024-05-23 00:26:28 +02:00
Benoit Marty
cf3b2bba91 Add test on isRelevant 2024-05-23 00:20:24 +02:00
Benoit Marty
4e7f5c46b8 Refactor: change signature to always have clientSecret first, since it's acting as a key. 2024-05-23 00:16:56 +02:00
Benoit Marty
0a2d87f6b1 Add test on DefaultUnregisterUnifiedPushUseCase 2024-05-23 00:11:50 +02:00
Benoit Marty
02fa405b8e Add test on UnifiedPushTest.isRelevant 2024-05-22 23:56:25 +02:00
Benoit Marty
f974cdd12a Add test on DefaultUnifiedPushNewGatewayHandler 2024-05-22 23:51:10 +02:00
Benoit Marty
f304c1f65a Add test on DefaultRegisterUnifiedPushUseCase 2024-05-22 23:36:01 +02:00
Benoit Marty
50b7f2c2c1 Add test on VectorUnifiedPushMessagingReceiver 2024-05-22 19:35:48 +02:00
Benoit Marty
09b2b2c476 Create interface UnifiedPushNewGatewayHandler 2024-05-22 19:00:55 +02:00
Benoit Marty
738bb831fa Create interface UnifiedPushGatewayResolver 2024-05-22 18:59:26 +02:00
Benoit Marty
5c68956e6c Fix test on VectorFirebaseMessagingService 2024-05-22 18:44:25 +02:00
Benoit Marty
b38c144f46 Add test on DefaultFirebaseNewTokenHandler 2024-05-22 18:42:39 +02:00
Benoit Marty
eafa713995 Add test on VectorFirebaseMessagingService 2024-05-22 17:57:35 +02:00
Benoit Marty
980a80bcf5 Cleanup 2024-05-22 15:29:27 +02:00
Benoit Marty
fe771a37c2 isCalledExactly(1) -> isCalledOnce() 2024-05-22 15:26:53 +02:00
Benoit Marty
707a530752 Fix wrong package name. 2024-05-22 14:44:35 +02:00
Benoit Marty
08f70b9cfd Move some classes to the test module. 2024-05-22 14:41:14 +02:00
Benoit Marty
505f6d4dae Add test on DefaultPushService 2024-05-22 14:29:35 +02:00
Benoit Marty
008797285f Add test for FirebasePushProvider 2024-05-22 11:27:20 +02:00
Benoit Marty
538c2b05a3 Create FakeIsPlayServiceAvailable 2024-05-22 11:11:14 +02:00
Benoit Marty
1bf38e96ae Add test on UnifiedPushProvider 2024-05-22 11:02:11 +02:00
Benoit Marty
86eceb3cbc UnifiedPushGatewayResolver.getGateway cannot return null. 2024-05-22 09:25:57 +02:00
Benoit Marty
50004e37cf Add test on UnifiedPushGatewayResolver 2024-05-22 09:23:33 +02:00
Benoit Marty
ada777e45c Add test for push distributor change. 2024-05-21 14:45:20 +02:00
Benoit Marty
82a2992ab3 Cleanup 2024-05-21 14:45:19 +02:00
Benoit Marty
495be55755 Add missing methods. 2024-05-21 14:45:18 +02:00
Benoit Marty
d459c0806b Wait for UnifiedPush pusher to be registered before returning Result. 2024-05-21 14:45:17 +02:00
Benoit Marty
2a20044cc7 Update comment 2024-05-21 14:45:17 +02:00
Benoit Marty
68708837d8 Ensure UnifiedPush endpoint is registered. 2024-05-21 14:45:17 +02:00
Benoit Marty
a65c290dd3 Improve API, to avoid ignoring errors 2024-05-21 14:45:16 +02:00
Benoit Marty
ad63f2b0c5 UnifiedPush: correctly unregister the provider. 2024-05-21 14:45:15 +02:00
Benoit Marty
d2fbff09b8 Push distributor: ensure the current UnifiedPush distributor is stored 2024-05-21 14:45:15 +02:00
bmarty
83a8a631f2 Sync Strings from Localazy 2024-05-20 00:23:05 +00:00
bmarty
0910da0a14 Sync Strings from Localazy 2024-05-13 12:47:48 +00:00
Jorge Martín
5425cdcbb1 Use GoogleApiAvailabilityLight instead of GoogleApiAvailability 2024-05-03 17:13:07 +02:00
bmarty
4f82baa2b0 Sync Strings from Localazy 2024-04-29 00:18:59 +00:00
Benoit Marty
cb435c523b Create dedicated module for notification troubleshoot. 2024-04-02 18:12:36 +02:00
Benoit Marty
52c039d676 Rename UserPushStoreFactory.create to UserPushStoreFactory.getOrCreate for code clarity. 2024-04-02 18:12:36 +02:00
Benoit Marty
e18e5f1cc5 Run ./tools/localazy/downloadStrings.sh --all 2024-04-02 18:12:36 +02:00
Benoit Marty
565e5ce87d Improve openUrlInExternalApp API and move url to UnifiedPushConfig 2024-04-02 18:12:36 +02:00
Benoit Marty
09b2cbaaf5 Localize Troubleshoot notification feature. 2024-04-02 16:15:04 +02:00
Benoit Marty
74048cca8f Avoid tryEmit(), use emit() 2024-04-02 16:15:01 +02:00