Temporarily ignore touhidurr notifications - bad user experience

This commit is contained in:
yairm210 2024-12-05 21:44:01 +02:00
parent 66b6be5858
commit 855479fe7a

View File

@ -203,6 +203,8 @@ class NotificationsScroll(
coveredNotificationsBottom + restoreButtonPad,
Align.bottomRight)
}
private val serverIconsToIgnore = hashSetOf("NotificationIcons/RobotArm", "NotificationIcons/ServerRack", "NotificationIcons/DollarSign")
private fun updateContent(
notifications: List<Notification>,
@ -264,6 +266,9 @@ class NotificationsScroll(
notificationsTable.add(header).right().row()
}
for (notification in categoryNotifications) {
// Temporarily ignore touhidurrr notifications
if (notification.icons.any { it in serverIconsToIgnore }) continue
val item = ListItem(notification, backgroundDrawable)
itemWidths.add(item.itemWidth)
val itemCell = notificationsTable.add(item)