Skip to content

Commit 9679c7f

Browse files
conference: treat Publish and Unpublish equal (#69)
Fixes #68.
1 parent 44566fd commit 9679c7f

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

pkg/conference/data_channel_message_processor.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,6 @@ func (c *Conference) processPublishDCMessage(participant *Participant, msg event
6464
})
6565
}
6666

67-
func (c *Conference) processUnpublishDCMessage(participant *Participant) {
68-
participant.logger.Info("Received unpublish over DC")
69-
}
70-
7167
func (c *Conference) processAliveDCMessage(participant *Participant) {
7268
participant.peer.ProcessHeartbeat()
7369
}

pkg/conference/peer_message_processor.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,8 @@ func (c *Conference) processDataChannelMessage(participant *Participant, msg pee
8888
c.processSelectDCMessage(participant, sfuMessage)
8989
case event.SFUOperationAnswer:
9090
c.processAnswerDCMessage(participant, sfuMessage)
91-
case event.SFUOperationPublish:
91+
case event.SFUOperationPublish, event.SFUOperationUnpublish:
9292
c.processPublishDCMessage(participant, sfuMessage)
93-
case event.SFUOperationUnpublish:
94-
c.processUnpublishDCMessage(participant)
9593
case event.SFUOperationAlive:
9694
c.processAliveDCMessage(participant)
9795
case event.SFUOperationMetadata:

0 commit comments

Comments
 (0)