diff --git a/src/cheogram/res/xml/shortcuts.xml b/src/cheogram/res/xml/shortcuts.xml
new file mode 100644
index 0000000000000000000000000000000000000000..6431baeb3ce1599f228ba8064e57ac96918c1bee
--- /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 4d59e385132a08250cd40527f020851d91d67d80..414f18f7d3575d993bc8ad820a9f22b706f60ee0 100644
--- a/src/main/AndroidManifest.xml
+++ b/src/main/AndroidManifest.xml
@@ -198,6 +198,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);