mirror of
https://codeberg.org/Mercury-IM/Mercury-IM
synced 2024-06-18 09:34:52 +02:00
deleteAccount(uuid)
This commit is contained in:
parent
6504170d58
commit
c165d7a633
|
@ -132,8 +132,8 @@ public class XmppAccountRepository
|
|||
}
|
||||
|
||||
@Override
|
||||
public Completable deleteAccount(Account account) {
|
||||
return dao.delete(account.getId()).ignoreElement()
|
||||
public Completable deleteAccount(UUID accountId) {
|
||||
return dao.delete(accountId).ignoreElement()
|
||||
.subscribeOn(subscriberScheduler())
|
||||
.observeOn(observerScheduler());
|
||||
}
|
||||
|
|
|
@ -31,6 +31,10 @@ public interface AccountRepository {
|
|||
|
||||
Single<Account> upsertAccount(Account account);
|
||||
|
||||
Completable deleteAccount(Account account);
|
||||
default Completable deleteAccount(Account account) {
|
||||
return deleteAccount(account.getId());
|
||||
}
|
||||
|
||||
Completable deleteAccount(UUID accountId);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue