-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TW-1356: fix the avatar not updated when app terminated
- Loading branch information
1 parent
e1bdf11
commit 9759166
Showing
13 changed files
with
334 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...ages/settings_dashboard/settings_profile/settings_profile_state/get_clients_ui_state.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import 'package:fluffychat/app_state/failure.dart'; | ||
import 'package:fluffychat/app_state/success.dart'; | ||
import 'package:fluffychat/presentation/multiple_account/twake_chat_presentation_account.dart'; | ||
|
||
class GetClientsInitialUIState extends Success { | ||
@override | ||
List<Object?> get props => []; | ||
} | ||
|
||
class GetClientsLoadingUIState extends Success { | ||
@override | ||
List<Object?> get props => []; | ||
} | ||
|
||
class GetClientsSuccessUIState extends Success { | ||
final List<TwakeChatPresentationAccount> multipleAccounts; | ||
|
||
const GetClientsSuccessUIState({ | ||
required this.multipleAccounts, | ||
}); | ||
|
||
bool get haveMultipleAccounts => multipleAccounts.length > 1; | ||
|
||
@override | ||
List<Object?> get props => [multipleAccounts]; | ||
} | ||
|
||
class GetClientsFailureUIState extends Failure { | ||
final dynamic exception; | ||
|
||
const GetClientsFailureUIState({this.exception}); | ||
|
||
@override | ||
List<Object?> get props => [exception]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.