mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-05-13 19:52:20 -04:00
fixing bugs
This commit is contained in:
parent
fd63a0d5e0
commit
f780a60d69
3 changed files with 7 additions and 2 deletions
|
@ -4,6 +4,7 @@ import 'package:freezed_annotation/freezed_annotation.dart';
|
|||
import 'package:veilid_support/veilid_support.dart';
|
||||
|
||||
import '../../proto/proto.dart' as proto;
|
||||
import '../../proto/proto.dart' show messageFromJson, messageToJson;
|
||||
|
||||
part 'message_state.freezed.dart';
|
||||
part 'message_state.g.dart';
|
||||
|
@ -26,7 +27,7 @@ enum MessageSendState {
|
|||
class MessageState with _$MessageState {
|
||||
const factory MessageState({
|
||||
// Content of the message
|
||||
@JsonKey(fromJson: proto.messageFromJson, toJson: proto.messageToJson)
|
||||
@JsonKey(fromJson: messageFromJson, toJson: messageToJson)
|
||||
required proto.Message content,
|
||||
// Sent timestamp
|
||||
required Timestamp sentTimestamp,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue