mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-16 12:00:03 +03:00
Merge pull request #6296 from vector-im/feature/adm/attach-ics
Allow sharing text mimetype content via android's share menu
This commit is contained in:
commit
baae7375af
2 changed files with 2 additions and 1 deletions
1
changelog.d/6285.feature
Normal file
1
changelog.d/6285.feature
Normal file
|
@ -0,0 +1 @@
|
|||
Allow sharing text based content via android's share menu (eg .ics files)
|
|
@ -214,7 +214,7 @@ class AttachmentsHelper(val context: Context, val callback: Callback) : Restorab
|
|||
it.toContentAttachmentData()
|
||||
}
|
||||
)
|
||||
} else if (type.startsWith("application") || type.startsWith("file") || type.startsWith("*")) {
|
||||
} else if (type.startsWith("application") || type.startsWith("file") || type.startsWith("text") || type.startsWith("*")) {
|
||||
callback.onContentAttachmentsReady(
|
||||
MultiPicker.get(MultiPicker.FILE).getIncomingFiles(context, intent).map {
|
||||
it.toContentAttachmentData()
|
||||
|
|
Loading…
Add table
Reference in a new issue