mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-21 03:15:14 +08:00
@@ -2,6 +2,7 @@ import 'package:PiliPlus/models/model_owner.dart';
|
||||
import 'package:PiliPlus/models_new/live/live_danmaku/live_emote.dart';
|
||||
import 'package:PiliPlus/models_new/live/live_medal_wall/uinfo_medal.dart';
|
||||
import 'package:PiliPlus/pages/danmaku/danmaku_model.dart';
|
||||
import 'package:PiliPlus/utils/global_data.dart';
|
||||
|
||||
class DanmakuMsg {
|
||||
final String name;
|
||||
@@ -55,7 +56,9 @@ class DanmakuMsg {
|
||||
ts: checkInfo['ts'],
|
||||
ct: checkInfo['ct'],
|
||||
),
|
||||
medalInfo: medal == null ? null : UinfoMedal.fromJson(medal),
|
||||
medalInfo: !GlobalData().showMedal || medal == null
|
||||
? null
|
||||
: UinfoMedal.fromJson(medal),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -66,5 +69,6 @@ class DanmakuMsg {
|
||||
'uemote': ?uemote?.toJson(),
|
||||
'reply': ?reply?.toJson(),
|
||||
'extra': extra.toJson(),
|
||||
'medal': ?medalInfo?.toJson(),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user