Skip to content

Commit 329960a

Browse files
committed
chore: remove item animations for now
Signed-off-by: Brandon McAnsh <[email protected]>
1 parent 3c0b3c4 commit 329960a

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

flipchatApp/src/main/kotlin/xyz/flipchat/app/features/chat/conversation/ConversationMessages.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import androidx.compose.animation.core.animateFloatAsState
44
import androidx.compose.animation.core.tween
55
import androidx.compose.foundation.Image
66
import androidx.compose.foundation.layout.Box
7-
import androidx.compose.foundation.layout.ExperimentalLayoutApi
87
import androidx.compose.foundation.layout.fillMaxSize
98
import androidx.compose.foundation.layout.padding
109
import androidx.compose.foundation.lazy.rememberLazyListState

ui/components/src/main/kotlin/com/getcode/ui/components/chat/MessageList.kt

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import androidx.compose.runtime.setValue
1717
import androidx.compose.runtime.snapshotFlow
1818
import androidx.compose.runtime.snapshots.Snapshot
1919
import androidx.compose.ui.Modifier
20-
import androidx.compose.ui.platform.LocalDensity
2120
import androidx.compose.ui.text.TextStyle
2221
import androidx.compose.ui.unit.dp
2322
import androidx.paging.LoadState
@@ -31,7 +30,6 @@ import com.getcode.theme.CodeTheme
3130
import com.getcode.ui.components.chat.messagecontents.MessageControlAction
3231
import com.getcode.ui.components.chat.utils.ChatItem
3332
import com.getcode.ui.components.text.markup.Markup
34-
import com.getcode.ui.utils.addIf
3533
import com.getcode.util.formatDateRelatively
3634
import kotlinx.coroutines.flow.combine
3735
import kotlinx.coroutines.flow.distinctUntilChanged
@@ -103,8 +101,7 @@ fun MessageList(
103101
when (val item = messages[index]) {
104102
is ChatItem.Date -> DateBubble(
105103
modifier = Modifier
106-
.padding(vertical = CodeTheme.dimens.grid.x2)
107-
.animateItem(),
104+
.padding(vertical = CodeTheme.dimens.grid.x2),
108105
date = item.dateString
109106
)
110107

@@ -138,8 +135,7 @@ fun MessageList(
138135
MessageNode(
139136
modifier = Modifier
140137
.fillMaxWidth()
141-
.padding(top = spacingBefore, bottom = spacingAfter)
142-
.animateItem(),
138+
.padding(top = spacingBefore, bottom = spacingAfter),
143139
contents = item.message,
144140
status = item.status,
145141
isDeleted = item.isDeleted,
@@ -177,8 +173,7 @@ fun MessageList(
177173
UnreadSeparator(
178174
modifier = Modifier
179175
.fillParentMaxWidth()
180-
.padding(vertical = CodeTheme.dimens.grid.x2)
181-
.animateItem(),
176+
.padding(vertical = CodeTheme.dimens.grid.x2),
182177
count = item.count
183178
)
184179
}
@@ -198,8 +193,7 @@ fun MessageList(
198193
}
199194
DateBubble(
200195
modifier = Modifier
201-
.padding(bottom = CodeTheme.dimens.grid.x2)
202-
.animateItem(),
196+
.padding(bottom = CodeTheme.dimens.grid.x2),
203197
date = dateString
204198
)
205199
}

0 commit comments

Comments
 (0)