fix: get mid

This commit is contained in:
bggRGjQaUbCoE
2024-10-20 11:58:06 +08:00
parent 73076ba13a
commit 9d48072515
6 changed files with 7 additions and 6 deletions

View File

@@ -196,7 +196,7 @@ class _RepostPanelState extends State<RepostPanel> {
Future _onRepost() async {
dynamic result = await MsgHttp.createDynamic(
mid: GStorage.userInfo.get('userInfoCache').mid,
mid: GStorage.userInfo.get('userInfoCache')?.mid,
dynIdStr: widget.item.idStr,
rawText: _ctr.text,
);

View File

@@ -232,7 +232,7 @@ class MorePanel extends StatelessWidget {
minLeadingWidth: 0,
),
if (item.modules.moduleAuthor.mid ==
GStorage.userInfo.get('userInfoCache').mid)
GStorage.userInfo.get('userInfoCache')?.mid)
ListTile(
onTap: () async {
Get.back();

View File

@@ -232,7 +232,7 @@ class MorePanel extends StatelessWidget {
minLeadingWidth: 0,
),
if (item.modules.moduleAuthor.mid ==
GStorage.userInfo.get('userInfoCache').mid)
GStorage.userInfo.get('userInfoCache')?.mid)
ListTile(
onTap: () async {
Get.back();