Exemple #1
0
 private async void DismissUserClick(object sender, RoutedEventArgs e)
 {
     try
     {
         if (sender is AppBarButton btn && btn.DataContext is InstaUserShortFriendship user && user != null)
         {
             await Dispatcher.RunAsync(CoreDispatcherPriority.Normal, async() =>
             {
                 FollowRequestsVM.RemoveItem(user.Pk);
                 var result = await Helper.InstaApi.UserProcessor.IgnoreFriendshipRequestAsync(user.Pk);
             });
         }
     }
     catch { }
 }