feat(llc): add support for setting message.type.
Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
@@ -168,7 +168,6 @@ class Message extends Equatable {
|
|||||||
late final MessageState state;
|
late final MessageState state;
|
||||||
|
|
||||||
/// The message type.
|
/// The message type.
|
||||||
@JsonKey(includeToJson: false)
|
|
||||||
final String type;
|
final String type;
|
||||||
|
|
||||||
/// The list of attachments, either provided by the user or generated from a
|
/// The list of attachments, either provided by the user or generated from a
|
||||||
|
|||||||
@@ -74,6 +74,7 @@ Message _$MessageFromJson(Map<String, dynamic> json) => Message(
|
|||||||
Map<String, dynamic> _$MessageToJson(Message instance) => <String, dynamic>{
|
Map<String, dynamic> _$MessageToJson(Message instance) => <String, dynamic>{
|
||||||
'id': instance.id,
|
'id': instance.id,
|
||||||
'text': instance.text,
|
'text': instance.text,
|
||||||
|
'type': instance.type,
|
||||||
'attachments': instance.attachments.map((e) => e.toJson()).toList(),
|
'attachments': instance.attachments.map((e) => e.toJson()).toList(),
|
||||||
'mentioned_users': User.toIds(instance.mentionedUsers),
|
'mentioned_users': User.toIds(instance.mentionedUsers),
|
||||||
'parent_id': instance.parentId,
|
'parent_id': instance.parentId,
|
||||||
|
|||||||
Reference in New Issue
Block a user