public void CheckNotes(MsgrClient client, Packet packet) { // Id of the newest note the client knows about var noteId = packet.GetLong(); var note = MsgrServer.Instance.Database.GetLatestUnreadNote(client.User.FullName, noteId); if (note != null) { Send.YouGotNote(client, note); } }