diff --git a/doc/docs.md b/doc/docs.md index a25c75d..cbe6413 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -1424,6 +1424,7 @@ Notification sent when peer updates its metadata | room_id | [string](#string) | | | | peer_id | [string](#string) | | | | metadata | [string](#string) | | | +| peer_type | [ServerMessage.PeerType](#fishjam-ServerMessage-PeerType) | | | diff --git a/fishjam/server_notifications.proto b/fishjam/server_notifications.proto index 147fb64..6b6c1d9 100644 --- a/fishjam/server_notifications.proto +++ b/fishjam/server_notifications.proto @@ -115,6 +115,7 @@ message ServerMessage { string room_id = 1; string peer_id = 2; string metadata = 3; + PeerType peer_type = 4; } // Notification sent when peer or component adds new track diff --git a/fishjam_protos/lib/fishjam/server_notifications.pb.ex b/fishjam_protos/lib/fishjam/server_notifications.pb.ex index bb49299..18617d5 100644 --- a/fishjam_protos/lib/fishjam/server_notifications.pb.ex +++ b/fishjam_protos/lib/fishjam/server_notifications.pb.ex @@ -164,6 +164,7 @@ defmodule Fishjam.ServerMessage.PeerMetadataUpdated do field :room_id, 1, type: :string, json_name: "roomId" field :peer_id, 2, type: :string, json_name: "peerId" field :metadata, 3, type: :string + field :peer_type, 4, type: Fishjam.ServerMessage.PeerType, json_name: "peerType", enum: true end defmodule Fishjam.ServerMessage.TrackAdded do