Revert "feat: Implement experimental new design"

This reverts commit 10cf8daf25c0ff50974c0439cf89fa6528510012
This commit is contained in:
Krille Fear 2021-02-01 20:00:35 +00:00
commit dfe9741c39
18 changed files with 698 additions and 1232 deletions

View file

@ -1,19 +0,0 @@
class Status {
static const String namespace = 'im.fluffychat.statuses';
final String senderId;
final String message;
final DateTime dateTime;
Status(this.senderId, this.message, this.dateTime);
Status.fromJson(Map<String, dynamic> json)
: senderId = json['sender_id'],
message = json['message'],
dateTime = DateTime.fromMillisecondsSinceEpoch(json['date_time']);
Map<String, dynamic> toJson() => <String, dynamic>{
'sender_id': senderId,
'message': message,
'date_time': dateTime.millisecondsSinceEpoch,
};
}