Example #1
0
 public async Task SaveState()
 {
     foreach (var groupPair in messagesByGroupKind.Where(x => x.Value != null))
     {
         await localStorageService.SaveGroup(groupPair.Key, groupPair.Value);
     }
     foreach (var replyByMId in repliesByMId)
     {
         await localStorageService.SaveReplies(replyByMId.Key, replyByMId.Value);
     }
 }