[FEAT]: Scan a QR code to start a chat

Aperta
#27 3 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@ChandruWritesCode ci sta già lavorando.

Dal 2/7/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

area: mobile difficulty: medium enhancement

Context

Users can already show their QR code (You tab → My QR code, and the QR icon on New message), but there's no way to scan one, so the code can't be used to find someone yet.

What to do

  • Add a Scan action to the New message screen that opens the camera.
  • When an Elephant QR code is scanned, open (or start) the chat with that user. Show a friendly error for other codes.
  • Ask for camera permission only when scanning, and handle "denied" gracefully.
  • Optional: scanning a contact's code on the Verify safety number screen marks it verified when the numbers match.

Where to look

mobile/lib/pages/new chat/new_chat_page.dart, the existing QR display (search for qr), mobile/android/app/src/main/AndroidManifest.xml (camera permission).

Important: F-Droid

The scanner library must be fully free software. No Google ML Kit or Play Services. Many popular packages (e.g. mobile_scanner on Android) use ML Kit, which F-Droid rejects. A ZXing-based package such as flutter_zxing is a safer choice. Please mention which one you pick before starting.

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.