major refactoring

Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
Sahil Kumar
2021-05-27 19:59:34 +05:30
parent 99afb0ba8e
commit 839ced618b
106 changed files with 4263 additions and 1937 deletions
@@ -5,6 +5,8 @@ import 'package:stream_chat_persistence/src/db/moor_chat_database.dart';
extension ConnectionEventX on ConnectionEventEntity {
/// Maps a [ConnectionEventEntity] into [Event]
Event toEvent() => Event(
type: type,
createdAt: lastEventAt,
me: ownUser != null ? OwnUser.fromJson(ownUser!) : null,
totalUnreadCount: totalUnreadCount,
unreadChannels: unreadChannels,