Swap LaunchedEffect key for clarity

This commit is contained in:
maxmoney21m 2023-03-04 15:03:11 +08:00
parent 6067a7d890
commit bd8e9da966

@ -99,8 +99,8 @@ private fun FeedLoaded(
val notificationCache = notificationCacheState.value ?: return
val context = LocalContext.current.applicationContext
if (markAsRead.value) {
LaunchedEffect(key1 = notificationCache) {
LaunchedEffect(key1 = markAsRead.value) {
if (markAsRead.value) {
for (note in state.feed.value) {
note.event?.let {
var route = ""