asap-feed-beta 12.8.0 → 12.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -888,11 +888,11 @@ var AsapTabFeedComponent = /** @class */ (function () {
888
888
  function (tabName) {
889
889
  var _this = this;
890
890
  this.canShow = -1;
891
- if (tabName == this.settings.tabs.channel) {
892
- setTimeout((/**
893
- * @return {?}
894
- */
895
- function () {
891
+ setTimeout((/**
892
+ * @return {?}
893
+ */
894
+ function () {
895
+ if (tabName == _this.settings.tabs.channel) {
896
896
  _this.service.query = {
897
897
  searchBy: 'channel_id',
898
898
  searchValue: _this.settings.tabs.channel_list.map((/**
@@ -902,42 +902,45 @@ var AsapTabFeedComponent = /** @class */ (function () {
902
902
  function (c) { return c.channel_id; })).join(',')
903
903
  };
904
904
  _this.canShow = 0;
905
- }), 100);
906
- }
907
- if (tabName == this.settings.tabs.feed) {
908
- setTimeout((/**
909
- * @return {?}
910
- */
911
- function () {
905
+ }
906
+ if (tabName == _this.settings.tabs.feed) {
912
907
  _this.service.query = {
913
908
  searchBy: 'user_info.id',
914
909
  searchValue: _this.global.loggedUser().id,
915
910
  typeValue: 'number'
916
911
  };
917
912
  _this.canShow = 1;
918
- }), 100);
919
- }
920
- if (tabName == this.settings.tabs.feed_users) {
921
- setTimeout((/**
922
- * @return {?}
923
- */
924
- function () {
913
+ }
914
+ if (tabName == _this.settings.tabs.feed_users) {
925
915
  _this.service.query = {
926
916
  searchBy: 'user_info.id',
927
- searchValue: 'all'
917
+ searchValue: 'all',
918
+ typeValue: 'number'
928
919
  };
929
920
  _this.canShow = 2;
930
- }), 100);
931
- }
932
- if (tabName == this.settings.tabs.allFeed) {
921
+ }
922
+ if (tabName == _this.settings.tabs.allFeed) {
923
+ _this.service.query = {
924
+ searchBy: 'user_info.id',
925
+ searchValue: _this.global.loggedUser().id,
926
+ typeValue: 'number'
927
+ };
928
+ _this.canShow = 3;
929
+ }
930
+ // 🔥 FORÇA O RELOAD DO FEED
933
931
  setTimeout((/**
934
932
  * @return {?}
935
933
  */
936
934
  function () {
937
- _this.service.query = {};
938
- _this.canShow = 3;
939
- }), 100);
940
- }
935
+ if (_this.feeds) {
936
+ _this.feeds.forEach((/**
937
+ * @param {?} feed
938
+ * @return {?}
939
+ */
940
+ function (feed) { return feed.getFeed(); }));
941
+ }
942
+ }));
943
+ }), 100);
941
944
  };
942
945
  /**
943
946
  * @param {?} id