Browse Source

Fix filtering of private tweets

rohit.gowda 4 years ago
parent
commit
f3d699ca50
1 changed files with 3 additions and 3 deletions
  1. 3 3
      app/src/pages/home/home.ts

+ 3 - 3
app/src/pages/home/home.ts

@@ -113,16 +113,16 @@ export class HomePage {
     this.privateTweet = !this.privateTweet;
     const loading = this.loadingCtrl.create();
     loading.present();
-    this.tweets = this.privateTweets;
-
+   
     if(this.privateTweet){
       this.color = 'black';
+      this.tweets = this.privateTweets;
       loading.dismiss();
     }
 
     else{
       this.color = 'white';
-      this.tweets =this.cachedTweets;
+      this.tweets = this.cachedTweets;
       loading.dismiss();
     }