Повторный вход в аккаунт, очистка кэша
This commit is contained in:
@@ -4,10 +4,13 @@ part 'chat_event.freezed.dart';
|
||||
|
||||
@freezed
|
||||
class ChatEvent with _$ChatEvent {
|
||||
const factory ChatEvent.started() = ChatEventStarted;
|
||||
const factory ChatEvent.started({String? userId}) = ChatEventStarted;
|
||||
const factory ChatEvent.chatsLoaded({String? currentUserId}) = ChatEventChatsLoaded;
|
||||
const factory ChatEvent.chatSelected(String chatId) = ChatEventChatSelected;
|
||||
const factory ChatEvent.messagesRequested(String chatId, {String? cursor}) = ChatEventMessagesRequested;
|
||||
const factory ChatEvent.messageSent(String chatId, String content) = ChatEventMessageSent;
|
||||
const factory ChatEvent.favoritesRequested() = ChatEventFavoritesRequested;
|
||||
const factory ChatEvent.typingUpdated(String chatId, String userId, bool isTyping) = ChatEventTypingUpdated;
|
||||
const factory ChatEvent.sendTypingStatus(String chatId, bool isTyping) = ChatEventSendTypingStatus;
|
||||
const factory ChatEvent.cacheCleared() = ChatEventCacheCleared;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user