feat(persistence): save channel.ownCapabilities in db

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2022-06-09 14:10:01 +05:30
committed by xsahil03x
parent c40580c3a7
commit c6eb075cee
5 changed files with 83 additions and 15 deletions
@@ -8,6 +8,7 @@ extension ChannelEntityX on ChannelEntity {
final config = ChannelConfig.fromJson(this.config);
return ChannelModel(
id: id,
ownCapabilities: ownCapabilities,
config: config,
type: type,
frozen: frozen,
@@ -46,6 +47,7 @@ extension ChannelModelX on ChannelModel {
id: id,
type: type,
cid: cid,
ownCapabilities: ownCapabilities,
config: config.toJson(),
frozen: frozen,
lastMessageAt: lastMessageAt,