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
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()
|
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(
|
callback.onContentAttachmentsReady(
|
||||||
MultiPicker.get(MultiPicker.FILE).getIncomingFiles(context, intent).map {
|
MultiPicker.get(MultiPicker.FILE).getIncomingFiles(context, intent).map {
|
||||||
it.toContentAttachmentData()
|
it.toContentAttachmentData()
|
||||||
|
Loading…
Reference in New Issue
Block a user