Skip to content

Commit

Permalink
Fix duration type of channel mute (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferhatelmas authored Dec 14, 2020
1 parent 63f6a50 commit 047f8b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ func (ch *Channel) Mute(userID string, expiration *time.Duration) (*ChannelMuteR
"channel_cid": ch.CID,
}
if expiration != nil {
data["expiration"] = int(expiration.Seconds())
data["expiration"] = int(expiration.Milliseconds())
}

mute := &ChannelMuteResponse{}
Expand Down

0 comments on commit 047f8b7

Please sign in to comment.