mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-25 05:05:20 +00:00
mention notifications work
This commit is contained in:
@@ -459,7 +459,7 @@ class NotificationManager(
|
|||||||
// Build notification content with location name if available
|
// Build notification content with location name if available
|
||||||
val geohashDisplay = latestNotification.locationName?.let { "$it (#$geohash)" } ?: "#$geohash"
|
val geohashDisplay = latestNotification.locationName?.let { "$it (#$geohash)" } ?: "#$geohash"
|
||||||
val contentTitle = when {
|
val contentTitle = when {
|
||||||
mentionCount > 0 && firstMessageCount > 0 -> "Mentioned in $geohashDisplay (+${messageCount - 1} more)"
|
mentionCount > 0 && firstMessageCount > 0 && messageCount > 1 -> "Mentioned in $geohashDisplay (+${messageCount - 1} more)"
|
||||||
mentionCount > 0 -> if (mentionCount == 1) "Mentioned in $geohashDisplay" else "$mentionCount mentions in $geohashDisplay"
|
mentionCount > 0 -> if (mentionCount == 1) "Mentioned in $geohashDisplay" else "$mentionCount mentions in $geohashDisplay"
|
||||||
firstMessageCount > 0 -> "New activity in $geohashDisplay"
|
firstMessageCount > 0 -> "New activity in $geohashDisplay"
|
||||||
else -> "Messages in $geohashDisplay"
|
else -> "Messages in $geohashDisplay"
|
||||||
|
|||||||
Reference in New Issue
Block a user