public static void ReceiveNudge(string userID) { bool isChatWindowOpen = IsChatWindowOpen(userID); ChatWindow foundChatWindow = GetChatWindow(userID); if (foundChatWindow != null) { foundChatWindow.Nudge(); if (!foundChatWindow.IsFocused & Personal.USER_INFO.status == Convert.ToInt16(UserStatus.Available)) { Player.PlaySound(Identifiers.NUDGE); if (!isChatWindowOpen) { string truncatedMessage = "Sent you a nudge!"; Notification.NotificationManager.Showpopup(foundChatWindow.GetContactName(), truncatedMessage, foundChatWindow); } } FlashWindowManager.FlashWindow(foundChatWindow, 5); } }