Skip to content

Commit e63f39b

Browse files
committed
fix app freeze (WIP)
avoid to initialize ComposeChatAdapter(). This is way too much and freezes the app The Text composable is of course just a placeholder to replace it with a well designed Message. However it's important that no heavy work is done in the composable to avoid the freeze Signed-off-by: Marcel Hibbe <[email protected]>
1 parent 01d6300 commit e63f39b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/main/java/com/nextcloud/talk/ui/PinnedMessage.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ fun PinnedMessageView(
113113
}
114114

115115
) {
116-
ComposeChatAdapter().GetComposableForMessage(message)
116+
val text = message.message ?: "here something with sense"
117+
Text(text)
117118
}
118119

119120
var expanded by remember { mutableStateOf(false) }

0 commit comments

Comments
 (0)