mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Prevent crash when sharing file from native gallery due to chatRoom not being initialized yet (but it is not needed)
This commit is contained in:
parent
01c079440d
commit
e05d4cf94a
1 changed files with 1 additions and 1 deletions
|
|
@ -397,7 +397,7 @@ class SendMessageInConversationViewModel
|
|||
|
||||
val fileName = FileUtils.getNameFromFilePath(file)
|
||||
val timestamp = System.currentTimeMillis() / 1000
|
||||
val model = FileModel(file, fileName, 0, timestamp, false, file, chatRoom.isEphemeralEnabled) { model ->
|
||||
val model = FileModel(file, fileName, 0, timestamp, false, file, false) { model ->
|
||||
removeAttachment(model.path)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue