bigbluebutton-Github/bbb-graphql-server
Arthur B. Grossi d2132484b4
feat(plugins): server command send chat message (#20781)
* feat(plugins): add chat server command and chat message type `plugin`

This commit adds the required code for the plugins SDK's chat server
command `CHAT_SEND_MESSAGE`, which allows plugins to send chat
messages. Messages sent by plugins are identified by the message
type `plugin` and belong to the user (senderID) of the client that
sent it. Plugin messages are not displayed by the client itself because
these messages are meant to be custom-rendered by plugins, typically by
the plugin that sent them.

* feat(plugins): add message metadata

Plugin name and plugin custom metadata are stored in message's metadata,
so plugins need it to identify messages when applying custom render.

* feat(chat): removes specific code for plugin messages

Removes specific akka messages, handlers and routes for plugin messages
and adds metadata parameter in `GroupChatMsgFromUser`.

* feat(chat): adds option parameter to mutation

Adds optional parameter `metadata` to the already existing mutation
`chatSendMessage` and use this mutation for plugin chat server command.

* feat(chat): rendering of plugin messages

This commit implements the correct rendering of plugin messages, which
is:
- Plugin messages with metadata attribute `custom` set to true are not
  rendered by the client, and are meant to be custom-rendered by
  plugins.
- Plugin messages with metadata attribute `custom` set to false are
  rendered by the client as being sent by the user that triggered it.

* Update sdk version to v0.0.56

* update sdk version to v0.0.57
2024-08-07 15:59:30 -04:00
..
metadata feat(plugins): server command send chat message (#20781) 2024-08-07 15:59:30 -04:00
bbb_schema.sql feat(private-chat): message read confirmation feedback (#20722) 2024-07-22 12:01:24 -04:00
build_hasura.sh Introduces userTyping, user_connectionStatus and other flags to Postgres/Hasura 2023-04-05 13:56:22 -03:00
config.yaml use sed to change config.yaml 2024-05-07 13:35:12 -03:00
deploy.sh Removes old PG user/tabled created for Meteor auth 2024-07-19 11:38:46 -03:00
README.md Set a different password for Hasura admin 2024-05-07 11:39:34 -03:00

Install

Run the script to install all dependencies:

cd ~/src/bbb-graphql-server
sudo ./install-hasura.sh

Update libs

cd ~/src/bbb-common-message; 
./deploy.sh; 
cd ~/src/akka-bbb-apps; 
sbt update; 
cd ~/src/bbb-common-web; 
./deploy.sh; 
cd ~/src/bigbluebutton-web/; 
./build.sh; 

Run Akka from source

cd ~/src/akka-bbb-apps/; 
./run-dev.sh

Run BBB-web from source

cd ~/src/bigbluebutton-web/; 
./run-dev.sh;

Run Html5 from source

cd ~/src/bigbluebutton-html5/;
./run-dev.sh;

Hasura Console

http://bbb30.bbbvm.imdt.com.br:8085/console

password: bigbluebutton

Client for tests:

cd  ~/src/bbb-graphql-client-test
npm install
npm start

https://bbb30.bbbvm.imdt.com.br/graphql-test

  • Join in a meeting, copy the param ?sessionToken=xxx and append it to the URL above