mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-22 03:31:09 +08:00
committed by
GitHub
parent
6009668427
commit
3c34e43827
@@ -36,7 +36,7 @@ class AtMeController extends CommonListController<MsgAtData, MsgAtItem> {
|
||||
Future<LoadingState<MsgAtData>> customGetData() =>
|
||||
MsgHttp.msgFeedAtMe(cursor: cursor, cursorTime: cursorTime);
|
||||
|
||||
Future<void> onRemove(dynamic id, int index) async {
|
||||
Future<void> onRemove(Object id, int index) async {
|
||||
try {
|
||||
var res = await MsgHttp.delMsgfeed(2, id);
|
||||
if (res['status']) {
|
||||
|
||||
@@ -104,7 +104,8 @@ class _AtMePageState extends State<AtMePage> {
|
||||
onLongPress: () => showConfirmDialog(
|
||||
context: context,
|
||||
title: '确定删除该通知?',
|
||||
onConfirm: () => _atMeController.onRemove(item.id, index),
|
||||
onConfirm: () =>
|
||||
_atMeController.onRemove(item.id!, index),
|
||||
),
|
||||
leading: GestureDetector(
|
||||
onTap: () => Get.toNamed('/member?mid=${item.user?.mid}'),
|
||||
|
||||
Reference in New Issue
Block a user