bug: emoji suggestions open for times like 12:00 and Enter inserts an emoji instead of sending
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 76/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- javascript, react
- Ambito
- frontend
Direzione di ricerca
Inizia leggendo useSearchEmoji e la sua corrispondenza attuale /:([a-zA-Z0-9_+-]*?)$/; confrontala con il comportamento di triggerAnywhere in ComposerPopupProvider o useComposerBoxPopup. Il lavoro è completato quando i due punti negli orari e nei rapporti non aprono suggerimenti di emoji, mentre :smi continua a funzionare all’inizio, dopo uno spazio e su una nuova riga.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description:
The emoji suggestions open for any colon followed by two characters, including the colon inside a time or a ratio. While the list is open, Enter picks the highlighted emoji instead of sending the message, so a message like "meeting at 12:00" is changed to "meeting at 12💯 " and not sent.
useSearchEmoji matches /:([a-zA-Z0-9_+-]*?)$/, which does not check what comes before the colon. Rocket.Chat's own composer only opens the emoji popup when the colon starts the message or follows a space ((?:^|\s):, from triggerAnywhere in ComposerPopupProvider / useComposerBoxPopup).
Steps to reproduce:
- In the message box, type
meeting at 12:00. - The emoji list opens with 💯.
- Press Enter.
Expected behavior:
No emoji list opens for 12:00, and Enter sends "meeting at 12:00".
Actual behavior:
The list opens and Enter replaces :00 with 💯. The message box now contains "meeting at 12💯 " and nothing is sent. Other examples with the current emoji list: see you at 10:30 (🈯), ratio 16:10 (💯, 🔟), note:ok (10 suggestions).
I'd like to send a fix that requires the colon to be at the start of the message or after a space, as in Rocket.Chat. Typing :smi at the start, after a space, or on a new line keeps working.
- Lingua principale
- JavaScript
- Stelle
- 170
- Fork
- 397
- Merge medio
- 8g 20h
- PR unite (30g)
- 6
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di RocketChat/EmbeddedChat
-
Bug: Unused media visibility check and missing useMemo dependencies cause stale/invalid actions in MessageToolbox.jsForse già presa @yashsarvaiya45 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
RocketChat/EmbeddedChat#1437 ·
I maintainer di solito rispondono entro 1 giorno
-
bug(layout-editor): theme refinements like "change it to dark" are ignored with AI providersForse già presa @arshil42 l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
RocketChat/EmbeddedChat#1433 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
RocketChat/EmbeddedChat#1432 ·
I maintainer di solito rispondono entro 1 giorno
-
bug: editing a multi-line message saves literal \n instead of line breaksForse già presa @arshil42 l’ha presa oggi. Aperta
Difficoltà 1/5 1-3 ore Idoneità per principianti 92/100
RocketChat/EmbeddedChat#1430 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Nested inline code, emoji and mentions disappear inside bold, italic and strikethroughForse già presa @gitseraj l’ha presa 2 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
RocketChat/EmbeddedChat#1429 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di RocketChat/EmbeddedChat
Issue simili
-
accepted enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Edit: Telemante [YT]Apertachannels:edit check:passed
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno