element-hq / element-android

A Matrix collaboration client for Android.
https://element.io/
GNU Affero General Public License v3.0
3.38k stars 726 forks source link

Open chat/call via "system" contacts app #4239

Open chagai95 opened 3 years ago

chagai95 commented 3 years ago

Your use case

What would you like to do?

Be able to chat/call with others via the contacts app.

Why would you like to do it?

some people actually like using that 😉

How would you like to achieve it?

Add a section for chatting and calling in the contacts app just like WhatsApp/Telegram/Signal and other messenger apps.

A few ways I've considered doing this: Have the app open in the search view searching for the contact name. Have the app open and search for email. Have the app open and do a look up to the identity server to find the mxid and go to that room or create one with that mxid.

I will take a look at programming the part which doesn't involve these options, since I'll be focused on starting a call with the number via the dial pad but hopefully this code could then be reused for this use case.

Have you considered any alternatives?

No it's a pretty basic feature

Additional context

No response

SimonBrandner commented 3 years ago

It would also be useful to have the ability for some contacts to override Android's DND

frandavid100 commented 3 years ago

It always seemed weird to me that Element Android didn't have this, but I assumed that it just wasn't possible because EA doesn't have a contacts list.

If it's possible, though, it would be a great feature to have.

chagai95 commented 3 years ago

So I ended up implementing this for numbers for a dial pad. I guess the only thing missing here is to have emails/numbers mapped to matrix IDs and then just start a chat with this person? If I'm not mistaken the mapping is already done somewhere...