Skip to content

Commit cdfa14f

Browse files
authored
Merge pull request #525 from code-payments/hotfix/2.1.8
hotfix/2.1.8
2 parents 325074f + f425d3b commit cdfa14f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

api/src/main/java/com/getcode/network/ChatHistoryController.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class ChatHistoryController @Inject constructor(
116116
chatFlows[chatId] = it
117117
}
118118

119-
val unreadCount = chats
119+
val unreadCount = notifications
120120
.filterNotNull()
121121
// Ignore muted chats and unsubscribed chats
122122
.map { it.filter { c -> !c.isMuted && c.isSubscribed } }

app/src/main/java/com/getcode/view/main/home/components/HomeBottom.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ internal fun HomeBottom(
8080
onClick = { onPress(HomeAction.BALANCE) },
8181
badge = {
8282
Badge(
83-
modifier = Modifier.padding(top = 2.dp, end = 2.dp),
83+
modifier = Modifier.padding(top = 6.dp, end = 1.dp),
8484
count = state.chatUnreadCount,
8585
color = ChatNodeDefaults.UnreadIndicator,
8686
enterTransition = scaleIn(
@@ -179,7 +179,7 @@ private fun BottomBarAction(
179179
actionPlaceable?.placeRelative(0, 0)
180180
badgePlaceable?.placeRelative(
181181
x = maxWidth - widthOrZero(badgePlaceable),
182-
y = -(heightOrZero(badgePlaceable) / 2)
182+
y = -(heightOrZero(badgePlaceable) / 3)
183183
)
184184
}
185185
}

0 commit comments

Comments
 (0)