From 9c2f026b4dd9558234076ee8537f6302776b0487 Mon Sep 17 00:00:00 2001 From: Krille Date: Thu, 11 May 2023 09:24:41 +0200 Subject: [PATCH] refactor: Remove unused parameters --- lib/src/room.dart | 7 ------- test/room_test.dart | 2 -- 2 files changed, 9 deletions(-) diff --git a/lib/src/room.dart b/lib/src/room.dart index 44a5e425..9b250053 100644 --- a/lib/src/room.dart +++ b/lib/src/room.dart @@ -58,7 +58,6 @@ const String messageSendingStatusKey = const String fileSendingStatusKey = 'com.famedly.famedlysdk.file_sending_status'; -const String sortOrderKey = 'com.famedly.famedlysdk.sort_order'; const String emptyRoomName = 'Empty chat'; /// Represents a Matrix room. @@ -103,8 +102,6 @@ class Room { 'notification_count': notificationCount, 'prev_batch': prev_batch, 'summary': summary.toJson(), - 'newest_sort_order': 0, - 'oldest_sort_order': 0, }; factory Room.fromJson(Map json, Client client) => Room( @@ -119,8 +116,6 @@ class Room { prev_batch: json['prev_batch'], summary: RoomSummary.fromJson(Map.from(json['summary'])), - newestSortOrder: json['newest_sort_order'].toDouble(), - oldestSortOrder: json['oldest_sort_order'].toDouble(), ); /// Flag if the room is partial, meaning not all state events have been loaded yet @@ -425,8 +420,6 @@ class Room { required this.client, this.notificationSettings, Map? roomAccountData, - double newestSortOrder = 0.0, - double oldestSortOrder = 0.0, RoomSummary? summary, }) : roomAccountData = roomAccountData ?? {}, summary = summary ?? diff --git a/test/room_test.dart b/test/room_test.dart index 48380a73..dc407bf3 100644 --- a/test/room_test.dart +++ b/test/room_test.dart @@ -54,8 +54,6 @@ void main() { highlightCount: highlightCount, notificationCount: notificationCount, prev_batch: '', - newestSortOrder: 0.0, - oldestSortOrder: 0.0, summary: RoomSummary.fromJson({ 'm.joined_member_count': 2, 'm.invited_member_count': 2,