Skip to content

Commit

Permalink
fix for tinode#583
Browse files Browse the repository at this point in the history
  • Loading branch information
or-else committed Dec 17, 2020
1 parent 1ab545c commit ffac631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/topic.go
Original file line number Diff line number Diff line change
Expand Up @@ -1482,7 +1482,7 @@ func (t *Topic) thisUserSub(h *Hub, sess *Session, pkt *ClientComMessage, asUid
t.notifySubChange(asUid, asUid, asChan, oldWant, oldGiven, userData.modeWant, userData.modeGiven, sess.sid)
}

if pkt.Sub.Newsub || oldWant != userData.modeWant || oldGiven != userData.modeGiven {
if (pkt.Sub != nil && pkt.Sub.Newsub) || oldWant != userData.modeWant || oldGiven != userData.modeGiven {
modeChanged = &MsgAccessMode{
Want: userData.modeWant.String(),
Given: userData.modeGiven.String(),
Expand Down

0 comments on commit ffac631

Please sign in to comment.