mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2025-06-28 20:29:53 +00:00
android, desktop: fix crash on very long quoted message (#5751)
This commit is contained in:
parent
364aa667ad
commit
ae24da090c
1 changed files with 5 additions and 1 deletions
|
@ -66,7 +66,11 @@ fun FramedItemView(
|
|||
@Composable
|
||||
fun ciQuotedMsgView(qi: CIQuote) {
|
||||
Box(
|
||||
Modifier.padding(vertical = 6.dp, horizontal = 12.dp),
|
||||
Modifier
|
||||
// this width limitation prevents crash on calculating constraints that may happen if you post veeeery long message and then quote it.
|
||||
// Top level layout wants `IntrinsicWidth.Max` and very long layout makes the crash in this case
|
||||
.widthIn(max = 50000.dp)
|
||||
.padding(vertical = 6.dp, horizontal = 12.dp),
|
||||
contentAlignment = Alignment.TopStart
|
||||
) {
|
||||
val sender = qi.sender(membership())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue