Skip to content

Commit e8a2b69

Browse files
minor: mention which events the SFU receives
Co-authored-by: Šimon Brandner <[email protected]>
1 parent 4f94b12 commit e8a2b69

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/signaling/client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ func (m *MatrixClient) RunSyncing(callback func(*event.Event)) {
4343

4444
syncer.ParseEventContent = true
4545
syncer.OnEvent(func(_ mautrix.EventSource, evt *event.Event) {
46-
// We only care about to-device events.
46+
// We only care about to-device events but also receive m.presence and
47+
// m.push_rules events; we can simply ignore those.
4748
if evt.Type.Class != event.ToDeviceEventType {
4849
return
4950
}

0 commit comments

Comments
 (0)