fix dumb programmer mistake in message.dart (reply isn't a rel_type, it's a seperate thing, idk how i wrote such code)

This commit is contained in:
OfficialDakari 2025-11-19 18:45:27 +05:00
parent ae014ad40b
commit 2b08ad928b
2 changed files with 11 additions and 5 deletions

View File

@ -385,8 +385,10 @@ class Message extends StatelessWidget {
crossAxisAlignment:
CrossAxisAlignment.start,
children: <Widget>[
if (event.relationshipType ==
RelationshipTypes.reply)
if (event.inReplyToEventId(
includingFallback: false,
) !=
null)
FutureBuilder<Event?>(
future: event
.getReplyEvent(timeline),
@ -703,7 +705,11 @@ class Message extends StatelessWidget {
mainAxisSize: MainAxisSize.min,
children: [
Icon(
(thread?.hasNewMessages ?? false) ? Icons.mark_chat_unread_outlined : Icons.chat_bubble_outline,
(thread?.hasNewMessages ??
false)
? Icons
.mark_chat_unread_outlined
: Icons.chat_bubble_outline,
color: Colors.grey[200],
size: 20,
),

View File

@ -1203,10 +1203,10 @@ packages:
description:
path: "."
ref: main
resolved-ref: "8272294736361eae8f3c81d220aaffcf30f38fb1"
resolved-ref: "8a1070a9e3009d82d23b8468372f38320932c997"
url: "https://git.extera.xyz/OfficialDakari/matrix-dart-sdk.git"
source: git
version: "3.0.2"
version: "4.0.0"
meta:
dependency: transitive
description: