about summary refs log tree commit diff
path: root/src/state/models/user-follows-view.ts
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-12-08 13:45:23 -0600
committerPaul Frazee <pfrazee@gmail.com>2022-12-08 13:45:23 -0600
commit539bf5d35069a654fb31b1ff636358fe28793c06 (patch)
tree89672e39e506ff3898aa1e4b9a306b6b31d89b47 /src/state/models/user-follows-view.ts
parent273e6d29734153e86a4b42b7e81d05fe5627f649 (diff)
downloadvoidsky-539bf5d35069a654fb31b1ff636358fe28793c06.tar.zst
Add avatar images and fix some type signatures
Diffstat (limited to 'src/state/models/user-follows-view.ts')
-rw-r--r--src/state/models/user-follows-view.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/state/models/user-follows-view.ts b/src/state/models/user-follows-view.ts
index 13742c327..15af6abc5 100644
--- a/src/state/models/user-follows-view.ts
+++ b/src/state/models/user-follows-view.ts
@@ -1,9 +1,9 @@
 import {makeAutoObservable} from 'mobx'
 import * as GetFollows from '../../third-party/api/src/client/types/app/bsky/graph/getFollows'
+import * as ActorRef from '../../third-party/api/src/client/types/app/bsky/actor/ref'
 import {RootStoreModel} from './root-store'
 
-type Subject = GetFollows.OutputSchema['subject']
-export type FollowItem = GetFollows.OutputSchema['follows'][number] & {
+export type FollowItem = GetFollows.Follow & {
   _reactKey: string
 }
 
@@ -16,10 +16,9 @@ export class UserFollowsViewModel {
   params: GetFollows.QueryParams
 
   // data
-  subject: Subject = {
+  subject: ActorRef.WithInfo = {
     did: '',
     handle: '',
-    displayName: '',
     declaration: {cid: '', actorType: ''},
   }
   follows: FollowItem[] = []
@@ -102,6 +101,7 @@ export class UserFollowsViewModel {
     this.subject.did = res.data.subject.did
     this.subject.handle = res.data.subject.handle
     this.subject.displayName = res.data.subject.displayName
+    this.subject.avatar = res.data.subject.avatar
     this.follows.length = 0
     let counter = 0
     for (const item of res.data.follows) {