This commit is contained in:
Till Faelligen 2022-08-31 17:43:40 +02:00
parent e4f0d5bd92
commit 82998cf4c3
No known key found for this signature in database
GPG key ID: 3DF82D8AB9211D4E

View file

@ -111,7 +111,7 @@ func (s *OutputReceiptEventConsumer) onMessage(ctx context.Context, msgs []*nats
return true
}
if err = s.sendReadUpdate(ctx, output); err != nil {
if err = s.sendReadUpdate(output); err != nil {
log.WithError(err).WithFields(logrus.Fields{
"user_id": output.UserID,
"room_id": output.RoomID,
@ -126,7 +126,7 @@ func (s *OutputReceiptEventConsumer) onMessage(ctx context.Context, msgs []*nats
return true
}
func (s *OutputReceiptEventConsumer) sendReadUpdate(ctx context.Context, output types.OutputReceiptEvent) error {
func (s *OutputReceiptEventConsumer) sendReadUpdate(output types.OutputReceiptEvent) error {
if output.Type != "m.read" {
return nil
}