Example #1
0
 private void _objChatSignalRService_OnGetGroupCreateStatusRecieved(object sender, GroupResponseViewModel e)
 {
     try
     {
         if (e.GroupId != 0)
         {
             GroupRepository.SaveGroupCreated(e);
             ChatModel cm = new ChatModel();
             cm.ChatId         = e.ChatModel.ChatId;
             cm.GroupId        = e.ChatModel.GroupId;
             cm.Message        = e.ChatModel.Message;
             cm.LastActiveTime = e.ChatModel.LastActiveTime;
             ChatConversation chatConversation = ChatConversationRepository.SaveGroupConverstionNewFromServer(cm);
             if (chatConversation != null)
             {
                 Activity.RunOnUiThread(() =>
                 {
                     MessageReceived(chatConversation, "NewChat");
                 });
             }
         }
     }
     catch (Java.Lang.Exception ex)
     {
         Crashes.TrackError(ex);
     }
 }