mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-19 15:21:01 +10:00
updated ui added new features
This commit is contained in:
@@ -41,6 +41,10 @@ class MessageStore {
|
||||
'timestamp': msg.timestamp.millisecondsSinceEpoch,
|
||||
'isOutgoing': msg.isOutgoing,
|
||||
'isCli': msg.isCli,
|
||||
'isVoice': msg.isVoice,
|
||||
'voicePath': msg.voicePath,
|
||||
'voiceDurationMs': msg.voiceDurationMs,
|
||||
'voiceCodec': msg.voiceCodec,
|
||||
'status': msg.status.index,
|
||||
'messageId': msg.messageId,
|
||||
'retryCount': msg.retryCount,
|
||||
@@ -65,6 +69,10 @@ class MessageStore {
|
||||
timestamp: DateTime.fromMillisecondsSinceEpoch(json['timestamp'] as int),
|
||||
isOutgoing: json['isOutgoing'] as bool,
|
||||
isCli: isCli,
|
||||
isVoice: json['isVoice'] as bool? ?? false,
|
||||
voicePath: json['voicePath'] as String?,
|
||||
voiceDurationMs: json['voiceDurationMs'] as int?,
|
||||
voiceCodec: json['voiceCodec'] as String?,
|
||||
status: MessageStatus.values[json['status'] as int],
|
||||
messageId: json['messageId'] as String?,
|
||||
retryCount: json['retryCount'] as int? ?? 0,
|
||||
|
||||
Reference in New Issue
Block a user