about summary refs log tree commit diff
path: root/src/lib/constants.ts
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2025-03-28 16:34:07 +0200
committerGitHub <noreply@github.com>2025-03-28 07:34:07 -0700
commit152bc3c1ec74fadc687efe97361ae7b1b5bd73c3 (patch)
tree14ed8a0bc97a040cc24ea685dad56205a8beca30 /src/lib/constants.ts
parent55a40c2436b68dea850e54a65c5dd197132c08e4 (diff)
downloadvoidsky-152bc3c1ec74fadc687efe97361ae7b1b5bd73c3.tar.zst
[DMs] Reactions - link up API (attempt 2) (#8074)
* update package

* wire up APIs

* get reactions to display

* allow removing emoji

* handle limits better

* listen to reactions in log

* update convo list with reactions

* tweaks to reaction display

* Handle empty message fallback case

* update package

* shift reacts up by 2px

---------

Co-authored-by: Eric Bailey <git@esb.lol>
Diffstat (limited to 'src/lib/constants.ts')
-rw-r--r--src/lib/constants.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/constants.ts b/src/lib/constants.ts
index a105de050..fe84f41b2 100644
--- a/src/lib/constants.ts
+++ b/src/lib/constants.ts
@@ -1,5 +1,5 @@
-import {Insets, Platform} from 'react-native'
-import {AppBskyActorDefs} from '@atproto/api'
+import {type Insets, Platform} from 'react-native'
+import {type AppBskyActorDefs} from '@atproto/api'
 
 export const LOCAL_DEV_SERVICE =
   Platform.OS === 'android' ? 'http://10.0.2.2:2583' : 'http://localhost:2583'
@@ -190,3 +190,5 @@ export const SUPPORTED_MIME_TYPES = [
 ] as const
 
 export type SupportedMimeTypes = (typeof SUPPORTED_MIME_TYPES)[number]
+
+export const EMOJI_REACTION_LIMIT = 5