Skip to content

Commit b74ffec

Browse files
committed
return the correct offline value on markasread
1 parent e9873e3 commit b74ffec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎go/chat/server.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,14 +314,14 @@ func (h *Server) MarkAsReadLocal(ctx context.Context, arg chat1.MarkAsReadLocalA
314314
h.Debug(ctx, "MarkAsReadLocal: not marking as read, app state not foreground: %v",
315315
h.G().AppState.State())
316316
return chat1.MarkAsReadLocalRes{
317-
Offline: h.G().Syncer.IsConnected(ctx),
317+
Offline: h.G().InboxSource.IsOffline(ctx),
318318
}, nil
319319
}
320320
if err = h.G().ConvSource.MarkAsRead(ctx, arg.ConversationID, uid, arg.MsgID); err != nil {
321321
return res, err
322322
}
323323
return chat1.MarkAsReadLocalRes{
324-
Offline: h.G().Syncer.IsConnected(ctx),
324+
Offline: h.G().InboxSource.IsOffline(ctx),
325325
}, nil
326326
}
327327

0 commit comments

Comments
 (0)