From fa6e2e091725805e07a3aab9c33af1c90efc63b8 Mon Sep 17 00:00:00 2001 From: Satyam Shrivastav Date: Mon, 30 Oct 2023 14:30:13 +0530 Subject: [PATCH 1/2] fixed chat screen --- lib/authorization/chatservice.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/authorization/chatservice.dart b/lib/authorization/chatservice.dart index 4ddf3ce..af2e772 100644 --- a/lib/authorization/chatservice.dart +++ b/lib/authorization/chatservice.dart @@ -43,7 +43,7 @@ class ChatService { .collection('Chat Rooms') .doc(chatRoomId) .collection('messages') - .orderBy('timeStamp', descending: false) + .orderBy('timeStamp', descending: true) .snapshots(); } } From 9a0d46d10e2ab618ece41ed09f6d9b938b694873 Mon Sep 17 00:00:00 2001 From: Satyam Shrivastav Date: Mon, 30 Oct 2023 14:36:44 +0530 Subject: [PATCH 2/2] fixed issues" --- lib/models/chatmodel.dart | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/models/chatmodel.dart b/lib/models/chatmodel.dart index 6f96350..82fbf03 100644 --- a/lib/models/chatmodel.dart +++ b/lib/models/chatmodel.dart @@ -1,5 +1,4 @@ // ignore_for_file: public_member_api_docs, sort_constructors_first -import 'dart:convert'; import 'package:cloud_firestore/cloud_firestore.dart';