Merge branch 'krille/remove-unused-parameters' into 'main'
refactor: Remove unused parameters See merge request famedly/company/frontend/famedlysdk!1292
This commit is contained in:
commit
801ed31362
|
|
@ -58,7 +58,6 @@ const String messageSendingStatusKey =
|
||||||
const String fileSendingStatusKey =
|
const String fileSendingStatusKey =
|
||||||
'com.famedly.famedlysdk.file_sending_status';
|
'com.famedly.famedlysdk.file_sending_status';
|
||||||
|
|
||||||
const String sortOrderKey = 'com.famedly.famedlysdk.sort_order';
|
|
||||||
const String emptyRoomName = 'Empty chat';
|
const String emptyRoomName = 'Empty chat';
|
||||||
|
|
||||||
/// Represents a Matrix room.
|
/// Represents a Matrix room.
|
||||||
|
|
@ -103,8 +102,6 @@ class Room {
|
||||||
'notification_count': notificationCount,
|
'notification_count': notificationCount,
|
||||||
'prev_batch': prev_batch,
|
'prev_batch': prev_batch,
|
||||||
'summary': summary.toJson(),
|
'summary': summary.toJson(),
|
||||||
'newest_sort_order': 0,
|
|
||||||
'oldest_sort_order': 0,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
factory Room.fromJson(Map<String, dynamic> json, Client client) => Room(
|
factory Room.fromJson(Map<String, dynamic> json, Client client) => Room(
|
||||||
|
|
@ -119,8 +116,6 @@ class Room {
|
||||||
prev_batch: json['prev_batch'],
|
prev_batch: json['prev_batch'],
|
||||||
summary:
|
summary:
|
||||||
RoomSummary.fromJson(Map<String, dynamic>.from(json['summary'])),
|
RoomSummary.fromJson(Map<String, dynamic>.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
|
/// Flag if the room is partial, meaning not all state events have been loaded yet
|
||||||
|
|
@ -425,8 +420,6 @@ class Room {
|
||||||
required this.client,
|
required this.client,
|
||||||
this.notificationSettings,
|
this.notificationSettings,
|
||||||
Map<String, BasicRoomEvent>? roomAccountData,
|
Map<String, BasicRoomEvent>? roomAccountData,
|
||||||
double newestSortOrder = 0.0,
|
|
||||||
double oldestSortOrder = 0.0,
|
|
||||||
RoomSummary? summary,
|
RoomSummary? summary,
|
||||||
}) : roomAccountData = roomAccountData ?? <String, BasicRoomEvent>{},
|
}) : roomAccountData = roomAccountData ?? <String, BasicRoomEvent>{},
|
||||||
summary = summary ??
|
summary = summary ??
|
||||||
|
|
|
||||||
|
|
@ -54,8 +54,6 @@ void main() {
|
||||||
highlightCount: highlightCount,
|
highlightCount: highlightCount,
|
||||||
notificationCount: notificationCount,
|
notificationCount: notificationCount,
|
||||||
prev_batch: '',
|
prev_batch: '',
|
||||||
newestSortOrder: 0.0,
|
|
||||||
oldestSortOrder: 0.0,
|
|
||||||
summary: RoomSummary.fromJson({
|
summary: RoomSummary.fromJson({
|
||||||
'm.joined_member_count': 2,
|
'm.joined_member_count': 2,
|
||||||
'm.invited_member_count': 2,
|
'm.invited_member_count': 2,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue