j3k0 / ganomede-admin

Ganomede administration interface
0 stars 0 forks source link

Moderate chat #84

Closed j3k0 closed 2 years ago

j3k0 commented 3 years ago

New page to display the content of a chat room

2 inputs: "user1, user2"

below:

To get the chat, it's ganomede-chat: https://github.com/j3k0/ganomede-chat#room-chatv1authauthtokenroomsroomid

Room id is <game_id>/<user1>/<user2>. IMPORTANT user1 and user2 sorted alphabetically.

If from is $$, show the message in gray.

Don't forget to encodeURIComponent the ROOM_ID

Example: <game_id> can be triominos/v1, need to be configurable with env var.

Connection with ganomede-chat configured with env var.

HusseinTaha commented 2 years ago

Task accomplished:

Final-result

Screen Shot 2021-11-08 at 10 52 43 PM

Tests added also for the new api, can you please review as well.