Core should expose to UIs what actions can be done on a message

Aperta
#8,814 3 commenti 2 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
54/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
api

Direzione di ricerca

Start by tracing the core API and resend validation mentioned in the issue, then check how message actions are represented and exposed to the Android and iOS clients. Identify the appropriate API entry points for the listed actions; done means core can reliably report which actions are available so UIs do not offer unsupported ones. The issue does not name files or tests, so first locate relevant message and action tests.

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

Descrizione

We have been running into some issues in both android and ios that we incorrectly show actions in the UI that do not work (or should not work). For example we showed "delete for everyone" and "resend" options for info messages. It would be really nice if there was apis for checking these actions so the logic of eg "chat can send && message is from current sender && message is not info message" doesn't live in each UI but instead reliably in core.

Some actions that would benefit from this:

  • can reply
  • can reply privately
  • can react
  • can edit
  • can resend
  • can delete
  • can delete for everyone
  • can save

Core probably already knows these because for example it throws an error when attempting to resend info messages

Lingua principale
Rust
Stelle
942
Fork
151
Merge medio
1g 23h
PR unite (30g)
61

Preparare l'ambiente

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 chatmail/core

Tutte le issue di chatmail/core

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.