TF-1363: [Presentation]: Implement enable or disable spam report for Mobile
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ class DeleteLastTimeDismissedSpamReportedInteractor {
|
||||
Stream<Either<Failure, Success>> execute() async* {
|
||||
try {
|
||||
yield Right<Failure, Success>(DeleteLastTimeDismissedSpamReportedLoading());
|
||||
await _spamReportRepository.deleteLastTimeDismissedSpamReported();
|
||||
await _spamReportRepository.deleteLastTimeDismissedSpamReported();
|
||||
yield Right<Failure, Success>(DeleteLastTimeDismissedSpamReportedSuccess());
|
||||
} catch (e) {
|
||||
yield Left<Failure, Success>(DeleteLastTimeDismissedSpamReportedFailure(e));
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ class DeleteSpamReportStateInteractor {
|
||||
Stream<Either<Failure, Success>> execute() async* {
|
||||
try {
|
||||
yield Right<Failure, Success>(DeleteSpamReportStateLoading());
|
||||
await _spamReportRepository.deleteSpamReportState();
|
||||
await _spamReportRepository.deleteSpamReportState();
|
||||
yield Right<Failure, Success>(DeleteSpamReportStateSuccess());
|
||||
} catch (e) {
|
||||
yield Left<Failure, Success>(DeleteSpamReportStateFailure(e));
|
||||
|
||||
Reference in New Issue
Block a user