about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-09-30 11:30:18 -0500
committerPaul Frazee <pfrazee@gmail.com>2022-09-30 11:30:18 -0500
commitb05a334dcbd6fbc5eb59da1d5cb111f683d5b1d8 (patch)
treef49392c21f20b488499ad285020f6f29c625cab4 /src
parentefa84fb8e732fe1403ad3f8d366d8572937b8e3a (diff)
downloadvoidsky-b05a334dcbd6fbc5eb59da1d5cb111f683d5b1d8.tar.zst
Remove debug time delays
Diffstat (limited to 'src')
-rw-r--r--src/state/models/feed-view.ts3
-rw-r--r--src/state/models/liked-by-view.ts1
-rw-r--r--src/state/models/notifications-view.ts3
-rw-r--r--src/state/models/post.ts1
-rw-r--r--src/state/models/profile-view.ts1
-rw-r--r--src/state/models/reposted-by-view.ts2
-rw-r--r--src/state/models/user-followers-view.ts1
-rw-r--r--src/state/models/user-follows-view.ts1
8 files changed, 0 insertions, 13 deletions
diff --git a/src/state/models/feed-view.ts b/src/state/models/feed-view.ts
index 7b4b45da6..585bbce28 100644
--- a/src/state/models/feed-view.ts
+++ b/src/state/models/feed-view.ts
@@ -234,7 +234,6 @@ export class FeedViewModel {
 
   private async _initialLoad(isRefreshing = false) {
     this._xLoading(isRefreshing)
-    await new Promise(r => setTimeout(r, 250)) // DEBUG
     try {
       const res = await this.rootStore.api.todo.social.getFeed(this.params)
       this._replaceAll(res)
@@ -246,7 +245,6 @@ export class FeedViewModel {
 
   private async _loadMore() {
     this._xLoading()
-    await new Promise(r => setTimeout(r, 250)) // DEBUG
     try {
       const params = Object.assign({}, this.params, {
         before: this.loadMoreCursor,
@@ -267,7 +265,6 @@ export class FeedViewModel {
 
   private async _update() {
     this._xLoading()
-    await new Promise(r => setTimeout(r, 250)) // DEBUG
     let numToFetch = this.feed.length
     let cursor = undefined
     try {
diff --git a/src/state/models/liked-by-view.ts b/src/state/models/liked-by-view.ts
index cb76d0bbd..5c873b19a 100644
--- a/src/state/models/liked-by-view.ts
+++ b/src/state/models/liked-by-view.ts
@@ -112,7 +112,6 @@ export class LikedByViewModel {
 
   private async _fetch(isRefreshing = false) {
     this._xLoading(isRefreshing)
-    await new Promise(r => setTimeout(r, 250)) // DEBUG
     try {
       const res = await this.rootStore.api.todo.social.getLikedBy(
         Object.assign({}, this.params, {uri: this.resolvedUri}),
diff --git a/src/state/models/notifications-view.ts b/src/state/models/notifications-view.ts
index 0ee5fd81b..a482e7d58 100644
--- a/src/state/models/notifications-view.ts
+++ b/src/state/models/notifications-view.ts
@@ -208,7 +208,6 @@ export class NotificationsViewModel {
 
   private async _initialLoad(isRefreshing = false) {
     this._xLoading(isRefreshing)
-    await new Promise(r => setTimeout(r, 250)) // DEBUG
     try {
       const res = await this.rootStore.api.todo.social.getNotifications(
         this.params,
@@ -222,7 +221,6 @@ export class NotificationsViewModel {
 
   private async _loadMore() {
     this._xLoading()
-    await new Promise(r => setTimeout(r, 250)) // DEBUG
     try {
       const params = Object.assign({}, this.params, {
         before: this.loadMoreCursor,
@@ -237,7 +235,6 @@ export class NotificationsViewModel {
 
   private async _update() {
     this._xLoading()
-    await new Promise(r => setTimeout(r, 250)) // DEBUG
     let numToFetch = this.notifications.length
     let cursor = undefined
     try {
diff --git a/src/state/models/post.ts b/src/state/models/post.ts
index e6542a375..73708311f 100644
--- a/src/state/models/post.ts
+++ b/src/state/models/post.ts
@@ -75,7 +75,6 @@ export class PostModel implements RemoveIndex<Post.Record> {
 
   private async _load() {
     this._xLoading()
-    await new Promise(r => setTimeout(r, 250)) // DEBUG
     try {
       const urip = new AdxUri(this.uri)
       const res = await this.rootStore.api.todo.social.post.get({
diff --git a/src/state/models/profile-view.ts b/src/state/models/profile-view.ts
index 7a85d06ae..e7685482e 100644
--- a/src/state/models/profile-view.ts
+++ b/src/state/models/profile-view.ts
@@ -121,7 +121,6 @@ export class ProfileViewModel {
 
   private async _load(isRefreshing = false) {
     this._xLoading(isRefreshing)
-    await new Promise(r => setTimeout(r, 250)) // DEBUG
     try {
       const res = await this.rootStore.api.todo.social.getProfile(this.params)
       this._replaceAll(res)
diff --git a/src/state/models/reposted-by-view.ts b/src/state/models/reposted-by-view.ts
index 90f4764b3..9b5b2ff51 100644
--- a/src/state/models/reposted-by-view.ts
+++ b/src/state/models/reposted-by-view.ts
@@ -112,7 +112,6 @@ export class RepostedByViewModel {
 
   private async _fetch(isRefreshing = false) {
     this._xLoading(isRefreshing)
-    await new Promise(r => setTimeout(r, 250)) // DEBUG
     try {
       const res = await this.rootStore.api.todo.social.getRepostedBy(
         Object.assign({}, this.params, {uri: this.resolvedUri}),
@@ -127,7 +126,6 @@ export class RepostedByViewModel {
   private async _refresh() {
     this._xLoading(true)
     // TODO: refetch and update items
-    await new Promise(r => setTimeout(r, 250)) // DEBUG
     this._xIdle()
   }
 
diff --git a/src/state/models/user-followers-view.ts b/src/state/models/user-followers-view.ts
index 8d6a929bf..21244c5c4 100644
--- a/src/state/models/user-followers-view.ts
+++ b/src/state/models/user-followers-view.ts
@@ -81,7 +81,6 @@ export class UserFollowersViewModel {
 
   private async _fetch(isRefreshing = false) {
     this._xLoading(isRefreshing)
-    await new Promise(r => setTimeout(r, 250)) // DEBUG
     try {
       const res = await this.rootStore.api.todo.social.getUserFollowers(
         this.params,
diff --git a/src/state/models/user-follows-view.ts b/src/state/models/user-follows-view.ts
index 45f8b4b05..d92effc0c 100644
--- a/src/state/models/user-follows-view.ts
+++ b/src/state/models/user-follows-view.ts
@@ -82,7 +82,6 @@ export class UserFollowsViewModel {
 
   private async _fetch(isRefreshing = false) {
     this._xLoading(isRefreshing)
-    await new Promise(r => setTimeout(r, 250)) // DEBUG
     try {
       const res = await this.rootStore.api.todo.social.getUserFollows(
         this.params,