Snackbar: SnackbarDispatcher.post does not need to be suspend.

This commit is contained in:
Benoit Marty 2025-01-24 14:42:07 +01:00
parent d909bb0c3d
commit 1ecb704e24
4 changed files with 6 additions and 10 deletions

View file

@ -484,7 +484,7 @@ class MessagesPresenter @AssistedInject constructor(
)
}
private suspend fun handleCopyContents(event: TimelineItem.Event) {
private fun handleCopyContents(event: TimelineItem.Event) {
val content = when (event.content) {
is TimelineItemTextBasedContent -> event.content.body
is TimelineItemStateContent -> event.content.body
@ -496,7 +496,7 @@ class MessagesPresenter @AssistedInject constructor(
}
}
private suspend fun handleCopyCaption(event: TimelineItem.Event) {
private fun handleCopyCaption(event: TimelineItem.Event) {
val content = (event.content as? TimelineItemEventContentWithAttachment)?.caption ?: return
clipboardHelper.copyPlainText(content)
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU) {