From 0b635cb7a1303bd7bd6dab8950c5f1e30182c613 Mon Sep 17 00:00:00 2001 From: trav Date: Thu, 12 Nov 2026 15:18:59 -0800 Subject: [PATCH] v0.8.1: Get info shows the newest photos first MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The thumbnails run newest first, like Signal; the full-size view still steps ← older, → newer, as in the chat. --- package.json | 2 +- resources/android/VoipMessages.apk | Bin 226007 -> 226007 bytes .../src/components/ConversationInfo.tsx | 14 +++++--------- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index c641309..193f1b6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "voipms-desktop", "productName": "bubble", - "version": "0.8.0", + "version": "0.8.1", "description": "Signal-style desktop SMS client for voip.ms", "author": "trav ", "private": true, diff --git a/resources/android/VoipMessages.apk b/resources/android/VoipMessages.apk index 252d6bef5cb030683fd2c81dd5e449d18c95cfc1..ed758649e0f2509b72c650bb85abae2ac4e592bd 100644 GIT binary patch delta 701 zcmccql=u2m-i9rV$2KyBSGAwm$hiH)My7zpK+bllP-a^u5F;|2IfMnoSRc*Y$fEG! z!VCTWp9_Laq_)3Sx*0q3c--BD!;e|m7^VL>EbLhvv^^k!S)IAw(08HliM#w!Y|p)S zw*H(M9&f+Bkaz#3)!PbmzP`I^GwtQ)MTgHAxSmtvdOp|nZSHO7PP;K^yxJ64^W&rNk=<7OI*v1> z+j%_J+}ky|;iUKNb90^sX}@i`9Poo@&CE&02cG`9`f+lly1`ky)9jz_xg^!>R#d&O zrLiWBeeYLO?~?RCPnS$9|HHI+_UBDs6*hFL)r2aSJBr57DlL|q#c)F>_18u32TZ+h zw+m!3YcWn=n98g{RG=|4Pk)oatWuw-ZM!A^lhUC=k*o5S$M@a7%N3S4m&;qW=Z$F? z!_kwES6$(IIF*m_)}8jdZzXN&_jFDB*LmM?IcL=B-{!jn?}kLrl6L(!Wt0Eq|EH(e zJZAb>xW4TickIjPa221>O7%*?4_}@*ix&7CRD829LD89;X|GMuxy!AZ+_~BAwHtlr z)t_0kZoR_-(NoX3KQcxYX#Cb+a@v)#E#R z9!%LUw^-$o(%Gr+UIo57&aXMqd+`_kjIM9|XFLS+e=zcQ%{@_Xe{3;ht*W?{>7mo< z%b#BrtNF?EW99tT&|lh%-m3(rU3l?{>7|QQ$bn_sm^2=NLT)cRFv(3nU&w3@qB)9~ R9YC~K5wjzR?k!^W0sv$aPLTir delta 701 zcmccql=u2m-i9rV$2KzQRkWYj$hiH)My7zpK+bllP-a^u5F;|2IfMnoSRc*Y$fB@% zv+1?6v$sF0)t!BPuF$VfY<=hI)RgL?jlZvO1{9QcZx2XdR%fo43Utd}$JZmvY!H4g z<7JfBiNf~wd$#Yl3FY`6Z<=}7<;I&o-yowY^M;J)|7RL@o!}TwJ-zY7c@g;BH%J&7;yWZ%mf2Oo`>H#O4_z9xZf?sT3 zWp~~(rS8!CAdy`U-Iks|_bVak+#27Q5ETu^)_C;>kJ9Xy7Z>I(vWY7{Cx55hdT;Hs z&ZAzIto5!uiv7!ey6To3Vog$;7;St(GB+pcUrxC4)MJeSH%?s73yYDRWW;98z&U2shyejT=du}fu1G*B#xg=JX%$G|D5*HgIDX) zx^Hs*_m$dib7W`dzSWa8&YhA~75U_FRA;%{wp5Gw<##u9$!?wV;A>^}7IQE8XLsJ# zODBJPsU^uiPiS?H>TwSR_ap3rt#aEsEe!p$?$#C5zuI@<`-0hNDmuPpesvoSmmP3% zcPf$JE5Mv{W9PHaCwZS`d5F>e_5GRf!>#XhZmvJJ zgRlLsNBOc8h0yb#Hb3jrE4ZjrqaVZ9{Q2kVbxuqIyFekgmmQeork^ilHV4rhMa&K$ P+N+4!5k&VEF?#_3&9qWp diff --git a/src/renderer/src/components/ConversationInfo.tsx b/src/renderer/src/components/ConversationInfo.tsx index cb737af..37fdbf5 100644 --- a/src/renderer/src/components/ConversationInfo.tsx +++ b/src/renderer/src/components/ConversationInfo.tsx @@ -1,4 +1,4 @@ -import { useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react' +import { useEffect, useMemo, useState } from 'react' import { formatNumber, groupMembers, isGroup } from '@shared/phone' import type { ContactInfo, Message } from '@shared/types' import type { ConvKey } from '../App' @@ -18,13 +18,12 @@ interface Props { onClose: () => void } -// Every picture and video in the chat as thumbnails, oldest first like the -// chat itself, scrolled to the newest. Each opens full size; ← → step through. +// Every picture and video in the chat as thumbnails, newest first. Each opens +// full size, where ← is older and → newer, as in the chat. function MediaGrid({ conv }: { conv: ConvKey }) { const [messages, setMessages] = useState() const [open, setOpen] = useState() const [broken, setBroken] = useState>(new Set()) - const grid = useRef(null) useEffect(() => { let cancelled = false void window.api.getMessages(conv.did, conv.contact).then((m) => !cancelled && setMessages(m)) @@ -33,9 +32,6 @@ function MediaGrid({ conv }: { conv: ConvKey }) { } }, [conv.did, conv.contact]) const items = useMemo(() => conversationMedia(messages ?? []), [messages]) - useLayoutEffect(() => { - if (grid.current) grid.current.scrollTop = grid.current.scrollHeight - }, [items]) if (!messages) return null const key = (it: MediaItem): string => `${it.id}:${it.index}` @@ -45,8 +41,8 @@ function MediaGrid({ conv }: { conv: ConvKey }) { Media{items.length ? · {items.length} : null} {items.length ? ( -
- {items.map((it, i) => ( +
+ {items.map((it, i) => ({ it, i })).reverse().map(({ it, i }) => (