|
|
@@ -192,15 +192,15 @@ class NewsPage extends BasePage<NewsController> {
|
|
|
final item = controller.messageList[index];
|
|
|
return GestureDetector(
|
|
|
onLongPress: () {
|
|
|
- controller.onUserIsLongEventClick(index);
|
|
|
+ if (item.type == 3 || item.type == 4) {
|
|
|
+ controller.onUserIsLongEventClick(index);
|
|
|
+ }
|
|
|
},
|
|
|
- child: Obx(() {
|
|
|
- return buildMessageInfoItem(
|
|
|
- item, (info) => controller.onMessageFunClick(info),
|
|
|
- isShowReportButton: (controller.isLongTapIndex.value == index) && Platform.isIOS && (item.type == 3 || item.type == 4),
|
|
|
- onReportEvent: (item.type == 3 || item.type == 4) ? controller.onReportEventClick : null
|
|
|
- );
|
|
|
- }),
|
|
|
+ child: buildMessageInfoItem(
|
|
|
+ item, (info) => controller.onMessageFunClick(info),
|
|
|
+ isShowReportButton: Platform.isIOS && (item.type == 3),
|
|
|
+ onReportEvent: (item.type == 3) ? controller.onReportEventClick : null
|
|
|
+ ),
|
|
|
);
|
|
|
}
|
|
|
|