Skip to content

Commit 04327fe

Browse files
committed
chore(home/tipcard): only show notification modal hint once
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent 0a4c913 commit 04327fe

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

app/src/main/java/com/getcode/view/main/home/HomeViewModel.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,6 +785,7 @@ class HomeViewModel @Inject constructor(
785785
value = Username(username)
786786
)
787787

788+
val hasSeenTipCard = tipController.hasSeenTipCard()
788789
tipController.clearTwitterSplat()
789790

790791
trace(
@@ -808,7 +809,9 @@ class HomeViewModel @Inject constructor(
808809
}
809810
}
810811

811-
showNotificationPermissionHintIfNeeded()
812+
if (!hasSeenTipCard) {
813+
showNotificationPermissionHintIfNeeded()
814+
}
812815
}
813816

814817
private suspend fun showNotificationPermissionHintIfNeeded() {

0 commit comments

Comments
 (0)