Jasper Yu says to YSITD
!notifyAboutLast ||notifyOverride == 2 || !preferences.getBoolean("EnableAll", true) || chat_id != 0 && !preferences.getBoolean("EnableGroup", true) && notifyOverride == 0