mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-08-18 02:40:33 -04:00
more refactor
This commit is contained in:
parent
ba4ef05a28
commit
b83aa3a64b
39 changed files with 722 additions and 514 deletions
|
@ -16,8 +16,7 @@ class ActiveUserLoginCubit extends Cubit<ActiveUserLoginState> {
|
|||
}
|
||||
|
||||
void _initAccountRepositorySubscription() {
|
||||
_accountRepositorySubscription =
|
||||
_accountRepository.changes().listen((change) {
|
||||
_accountRepositorySubscription = _accountRepository.stream.listen((change) {
|
||||
switch (change) {
|
||||
case AccountRepositoryChange.activeUserLogin:
|
||||
emit(_accountRepository.getActiveUserLogin());
|
||||
|
|
|
@ -18,8 +18,7 @@ class LocalAccountsCubit extends Cubit<LocalAccountsState> {
|
|||
}
|
||||
|
||||
void _initAccountRepositorySubscription() {
|
||||
_accountRepositorySubscription =
|
||||
_accountRepository.changes().listen((change) {
|
||||
_accountRepositorySubscription = _accountRepository.stream.listen((change) {
|
||||
switch (change) {
|
||||
case AccountRepositoryChange.localAccounts:
|
||||
emit(_accountRepository.getLocalAccounts());
|
||||
|
|
|
@ -18,8 +18,7 @@ class UserLoginsCubit extends Cubit<UserLoginsState> {
|
|||
}
|
||||
|
||||
void _initAccountRepositorySubscription() {
|
||||
_accountRepositorySubscription =
|
||||
_accountRepository.changes().listen((change) {
|
||||
_accountRepositorySubscription = _accountRepository.stream.listen((change) {
|
||||
switch (change) {
|
||||
case AccountRepositoryChange.userLogins:
|
||||
emit(_accountRepository.getUserLogins());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue