Skip to content

Commit 9f274e1

Browse files
authored
Fixes bugs with metadata and rpc (#64)
1 parent 5464bc9 commit 9f274e1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Runtime/Scripts/Participant.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class Participant
3030
public readonly WeakReference<Room> Room;
3131
public IReadOnlyDictionary<string, TrackPublication> Tracks => _tracks;
3232

33-
private Dictionary<string, RpcHandler> _rpcHandlers = new();
33+
protected Dictionary<string, RpcHandler> _rpcHandlers = new();
3434

3535
protected Participant(OwnedParticipant participant, Room room)
3636
{

Runtime/Scripts/Room.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ internal void OnEventReceived(RoomEvent e)
216216
var participant = GetParticipant(e.ParticipantMetadataChanged.ParticipantIdentity);
217217
if (participant != null)
218218
{
219-
ParticipantMetadataChanged?.Invoke(participant);
220219
participant.SetMeta(e.ParticipantMetadataChanged.Metadata);
220+
ParticipantMetadataChanged?.Invoke(participant);
221221
}
222222
else Utils.Debug("Unable to find participant: " + e.ParticipantMetadataChanged.ParticipantIdentity + " in Meta data Change Event");
223223
}

0 commit comments

Comments
 (0)