exclude emotes from chat

This commit is contained in:
Hugo Arregui 2023-08-10 15:14:57 -03:00
parent 150fa3515e
commit f8dd0b7405
No known key found for this signature in database
GPG Key ID: 5100706D2A1AFAD4

View File

@ -53,7 +53,8 @@ export function setupChat(room: Room) {
({ packet }) =>
packet.message?.$case === 'chat' &&
!packet.message.chat.message.startsWith('␆') /* ping */ &&
!packet.message.chat.message.startsWith('␑') /* pong */
!packet.message.chat.message.startsWith('␑') /* pong */ &&
!packet.message.chat.message.startsWith('␐') /* emotes */
),
map(({ packet, msg }) => {
if (packet.message?.$case === 'chat') {