Add support for Direct Share targets. by anakin78z ยท Pull Request #6024 ยท nextcloud/talk-android

When an app shares something using the share sheet, it can now suggest Nextcloud Talk contacts.

๐Ÿ–ผ๏ธ Screenshots

share sheet with nextcloud talk contact shortcuts

This also adds shortcuts to the app on the launcher, accessible by long pressing the app icon.
Note that it may end up pushing the Open Notes shortcut off the list, depending on how many active conversations you have going.

๐Ÿš๏ธ Before ๐Ÿก After
no contact shortcuts multiple contact shortcuts

TESTING

Whether or not shortcuts show up in the share sheet is at the whim of Android's prioritization, so you may not see them right away. To guarantee that you can see them, start a new emulator and sign into Nextcloud Talk there. Direct Share contacts should show on the share sheet right away.

๐Ÿšง TODO

  • Handle account switching, sign out, and conversation deleting
  • Add testing instructions
  • Codacy
  • Merge latest master with chat changes

๐Ÿ Checklist

  • โ›‘๏ธ Tests (unit and/or integration) are included or not needed
  • ๐Ÿ”– Capability is checked or not needed
  • ๐Ÿ”™ Backport requests are created or not needed: /backport to stable-xx.x
  • ๐Ÿ“… Milestone is set
  • ๐ŸŒธ PR title is meaningful (if it should be in the changelog: is it meaningful to users?)