Skip to content

Commit 39176f7

Browse files
committed
optimize chat rendering
1 parent 1862b4b commit 39176f7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/screens/channel/chat/chat.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,10 @@ class Chat extends StatelessWidget {
5252
controller: chatStore.scrollController,
5353
itemCount: chatStore.renderMessages.length,
5454
itemBuilder: (context, index) => ChatMessage(
55-
ircMessage: chatStore.renderMessages.reversed
56-
.toList()[index],
55+
ircMessage: chatStore.renderMessages[
56+
chatStore.renderMessages.length -
57+
1 -
58+
index],
5759
chatStore: chatStore,
5860
),
5961
);

0 commit comments

Comments
 (0)