mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-04-04 13:26:09 +00:00
reorder lines
This commit is contained in:
@@ -106,11 +106,11 @@ class MainActivity: FragmentActivity() {
|
||||
}
|
||||
if (!onBackPressedDispatcher.hasEnabledCallbacks()) {
|
||||
val sharedContent = chatModel.sharedContent.value
|
||||
// Drop shared content
|
||||
chatModel.sharedContent.value = null
|
||||
if (sharedContent is SharedContent.Forward) {
|
||||
chatModel.chatId.value = sharedContent.fromChatInfo.id
|
||||
}
|
||||
// Drop shared content
|
||||
chatModel.sharedContent.value = null
|
||||
if (canFinishActivity) {
|
||||
finish()
|
||||
}
|
||||
|
||||
@@ -83,11 +83,11 @@ private fun ShareListToolbar(chatModel: ChatModel, userPickerState: MutableState
|
||||
}
|
||||
else -> NavigationButtonBack(onButtonClicked = {
|
||||
val sharedContent = chatModel.sharedContent.value
|
||||
// Drop shared content
|
||||
chatModel.sharedContent.value = null
|
||||
if (sharedContent is SharedContent.Forward) {
|
||||
chatModel.chatId.value = sharedContent.fromChatInfo.id
|
||||
}
|
||||
// Drop shared content
|
||||
chatModel.sharedContent.value = null
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user