deltachat / deltachat-ios

Email-based instant messaging for iOS.
GNU General Public License v3.0
316 stars 50 forks source link

Send vCards #2186

Closed zeitschlag closed 3 months ago

zeitschlag commented 4 months ago

See #2167.

r10s commented 4 months ago

ftr, base class could GroupMembersViewController, which is also used for BlockedContactsViewController.

apart from the not-matching name, it offers search and probably everything we need for selecting a contact.

Hocuri commented 3 months ago

What's to do wrt the core API, I hope I didn't forget anything:

  1. after click on "contact" in attachment menu, show a dialog to select one contact
  2. Create a message with viewtype VCard
    • Steps 3, 4 and 5 can be combined using https://github.com/deltachat/deltachat-core-rust/pull/5677:
      1. get VCard including this contact by calling rpc.makeVcard
      2. save this VCard as temporary file
      3. attach this file to the message like a normal file attachement and set it as a draft. Alternatively, directly send it, staging as a draft can come later.