about summary refs log tree commit diff
path: root/src/components/dms/MessageItem.tsx
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-05-03 15:08:59 -0700
committerGitHub <noreply@github.com>2024-05-03 15:08:59 -0700
commitfeff55a14a050665e6cc8bb7511425986ef4768a (patch)
tree894e06c164d84e586dfce2c766a06226124da098 /src/components/dms/MessageItem.tsx
parent876816675e84d4175072950f36af5e19d412ce9b (diff)
downloadvoidsky-feff55a14a050665e6cc8bb7511425986ef4768a.tar.zst
Clipclop tweaks (#3851)
* scroll on input resize

* add back the padding 🙊

* fix timestamps
Diffstat (limited to 'src/components/dms/MessageItem.tsx')
-rw-r--r--src/components/dms/MessageItem.tsx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/components/dms/MessageItem.tsx b/src/components/dms/MessageItem.tsx
index ba90dd149..fd8edaf2d 100644
--- a/src/components/dms/MessageItem.tsx
+++ b/src/components/dms/MessageItem.tsx
@@ -32,6 +32,11 @@ export let MessageItem = ({
     next.sender?.did === currentAccount?.did
 
   const isLastInGroup = useMemo(() => {
+    // TODO this means it's a placeholder. Let's figure out the right way to do this though!
+    if (item.id.length > 13) {
+      return false
+    }
+
     // if the next message is from a different sender, then it's the last in the group
     if (isFromSelf ? !isNextFromSelf : isNextFromSelf) {
       return true