From beb857e21ef87938ba42a1ae02a5a05c292f6008 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Ro=C5=BCnawski?= Date: Fri, 22 Aug 2025 13:41:26 +0200 Subject: [PATCH] Add peer type to peer metadata --- doc/docs.md | 1 + fishjam/server_notifications.proto | 1 + fishjam_protos/lib/fishjam/server_notifications.pb.ex | 1 + 3 files changed, 3 insertions(+) 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