Allows users to select and copy the notice from the relay on the relay list dialog

This commit is contained in:
Vitor Pamplona
2024-08-09 13:43:53 -04:00
parent d8f084f886
commit 7eaa553ebe

View File

@@ -286,20 +286,22 @@ fun RelayInformationDialog(
items(messages) { msg -> items(messages) { msg ->
Row { Row {
TranslatableRichTextViewer( SelectionContainer {
content = TranslatableRichTextViewer(
remember { content =
"${timeAgo(msg.time, context)}, ${msg.type.name}: ${msg.message}" remember {
}, "${timeAgo(msg.time, context)}, ${msg.type.name}: ${msg.message}"
canPreview = false, },
quotesLeft = 0, canPreview = false,
modifier = Modifier.fillMaxWidth(), quotesLeft = 0,
tags = EmptyTagList, modifier = Modifier.fillMaxWidth(),
backgroundColor = color, tags = EmptyTagList,
id = msg.hashCode().toString(), backgroundColor = color,
accountViewModel = accountViewModel, id = msg.hashCode().toString(),
nav = nav, accountViewModel = accountViewModel,
) nav = nav,
)
}
} }
Spacer(modifier = StdVertSpacer) Spacer(modifier = StdVertSpacer)