Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kehiy committed Jan 3, 2025
1 parent 4ae9c03 commit 38b8a42
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/websocket/event_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ func (s *Server) handleEvent(conn *websocket.Conn, m message.Message) { //nolint

expirationTag := msg.Event.Tags.GetValue("expiration")

if expirationTag != "" {
if expirationTag != "" &&
expirationTag != "0" &&
!msg.Event.Kind.IsEphemeral() {
expiration, err := strconv.ParseInt(expirationTag, 10, 64)
if err != nil {
okm := message.MakeOK(false,
Expand Down

0 comments on commit 38b8a42

Please sign in to comment.