diff --git a/src/cheogram/res/xml/shortcuts.xml b/src/cheogram/res/xml/shortcuts.xml
new file mode 100644
index 000000000..6431baeb3
--- /dev/null
+++ b/src/cheogram/res/xml/shortcuts.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/src/main/AndroidManifest.xml b/src/main/AndroidManifest.xml
index 03069f52d..385b55518 100644
--- a/src/main/AndroidManifest.xml
+++ b/src/main/AndroidManifest.xml
@@ -193,6 +193,7 @@
+
uris = intent.getParcelableArrayListExtra(Intent.EXTRA_STREAM);
this.share.uris = uris == null ? new ArrayList<>() : uris;
}
+ final var shortcutId = intent.getStringExtra(Intent.EXTRA_SHORTCUT_ID);
+ if (shortcutId != null) {
+ final var index = shortcutId.indexOf('#');
+ if (index >= 0) {
+ this.share.account = shortcutId.substring(0, index);
+ this.share.contact = shortcutId.substring(index+1);
+ }
+ }
if (xmppConnectionServiceBound) {
xmppConnectionService.populateWithOrderedConversations(
mConversations, this.share.uris.isEmpty(), false);