[FEAT]: Open a chat from an elephant:// link

Aperta
#132 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
dart, flutter
Ambito
mobile

Direzione di ricerca

The payload names no files, tests or entry points, so start by finding how the Flutter client handles incoming links and routing, and how the existing forward action works. Done means a tapped link opens the app at the specific chat, and the forward action leads to a page where the user picks a recipient. Ask the maintainers which link format to support before writing code, since the issue does not specify one.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: mobile difficulty: medium enhancement

Context

Sharing your profile as a link (not only a QR code) would make it easier to start chats.

What to do

  • Define a link format, e.g. https://elephant.commandlinecoding.in/u/<username> (and/or elephant://u/<username>). Discuss it in this issue first.
  • Opening the link launches Elephant and opens the chat with that user (or asks to sign in first).
  • Add a Share profile link action next to My QR code.

Where to look

app_links is already used for OAuth callbacks in mobile/lib/controllers/auth_state.dart (_initDeepLinks). Intent filters go in mobile/android/app/src/main/AndroidManifest.xml.

Good to know

HTTPS app links need an assetlinks.json on the server. A custom scheme is simpler to start with.

Lingua principale
Dart
Stelle
9
Fork
5
Merge medio
49m
PR unite (30g)
34

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CommandLineCoding/Elephant

Tutte le issue di CommandLineCoding/Elephant

Issue simili

Altre issue su Dart

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.