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(); } } 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';