bug: emoji suggestions open for times like 12:00 and Enter inserts an emoji instead of sending
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 76/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, react
- Lĩnh vực
- frontend
Hướng nghiên cứu
Bắt đầu bằng cách đọc useSearchEmoji và kết quả khớp hiện tại /:([a-zA-Z0-9_+-]*?)$/; so sánh với hành vi triggerAnywhere trong ComposerPopupProvider hoặc useComposerBoxPopup. Hoàn tất khi dấu hai chấm trong giờ và tỷ lệ không mở gợi ý emoji, còn :smi vẫn hoạt động ở đầu câu, sau dấu cách và trên dòng mới.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- JavaScript
- Star
- 170
- Fork
- 397
- Merge trung bình
- 8 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của RocketChat/EmbeddedChat
-
Bug: Unused media visibility check and missing useMemo dependencies cause stale/invalid actions in MessageToolbox.jsCó thể đã có người làm @yashsarvaiya45 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
RocketChat/EmbeddedChat#1437 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug(layout-editor): theme refinements like "change it to dark" are ignored with AI providersCó thể đã có người làm @arshil42 đã nhận 1 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
RocketChat/EmbeddedChat#1433 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
RocketChat/EmbeddedChat#1432 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug: editing a multi-line message saves literal \n instead of line breaksCó thể đã có người làm @arshil42 đã nhận hôm nay. Đang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 92/100
RocketChat/EmbeddedChat#1430 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Nested inline code, emoji and mentions disappear inside bold, italic and strikethroughCó thể đã có người làm @gitseraj đã nhận 2 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
RocketChat/EmbeddedChat#1429 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của RocketChat/EmbeddedChat
Issue tương tự
-
accepted enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Edit: Telemante [YT]Đang mởchannels:edit check:passed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày