fix: reply to blocked messages using swipe to reply

closes #11

Signed-off-by: Amy <amy+git@amogus.cloud>
This commit is contained in:
Amy 2025-12-07 08:56:22 -04:00 committed by Amelia
parent 584ce90b64
commit ad25e3187e
1 changed files with 3 additions and 1 deletions

View File

@ -216,7 +216,9 @@ fun RegularMessage(
)
.nestedScroll(nestedScrollConnection)
.then(
if (LoadedSettings.messageReplyStyle == MessageReplyStyle.SwipeFromEnd)
// FIXME Use one cache roundtrip instead of fetching the cache twice to render the message
if (LoadedSettings.messageReplyStyle == MessageReplyStyle.SwipeFromEnd
&& StoatAPI.userCache[message.author]?.relationship != "Blocked")
Modifier.supportSwipeReply(
onDown = {},
onMove = onFingerMoveHandler,