We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 191dab0 commit ebe4e9bCopy full SHA for ebe4e9b
lib/api/model/model.dart
@@ -871,8 +871,10 @@ enum MessageEditState {
871
}
872
873
// TODO(server-5) prev_subject was the old name of prev_topic on pre-5.0 servers
874
- final prevTopic = (entry['prev_topic'] ?? entry['prev_subject']) as String?;
875
- final topic = entry['topic'] as String?;
+ final prevTopicStr = (entry['prev_topic'] ?? entry['prev_subject']) as String?;
+ final prevTopic = prevTopicStr == null ? null : TopicName.fromJson(prevTopicStr);
876
+ final topicStr = entry['topic'] as String?;
877
+ final topic = topicStr == null ? null : TopicName.fromJson(topicStr);
878
if (prevTopic != null) {
879
// TODO(server-5) pre-5.0 servers do not have the 'topic' field
880
if (topic == null) {
0 commit comments