archiveSyncResponse property
Map<String, dynamic>
archiveSyncResponse
getter/setter pair
Implementation
static Map<String, dynamic> archiveSyncResponse = {
'next_batch': Random().nextDouble().toString(),
'presence': {'events': []},
'account_data': {'events': []},
'to_device': {'events': []},
'rooms': {
'join': {},
'invite': {},
'leave': {
'!5345234234:example.com': {
'timeline': {
'events': [
{
'content': {
'body': 'This is an example text message',
'msgtype': 'm.text',
'format': 'org.matrix.custom.html',
'formatted_body': '<b>This is an example text message</b>'
},
'type': 'm.room.message',
'event_id': '143273582443PhrSn:example.org',
'room_id': '!5345234234:example.com',
'sender': '@example:example.org',
'origin_server_ts': 1432735824653,
'unsigned': {'age': 1234}
},
]
},
'state': {
'events': [
{
'content': {'name': 'The room name'},
'type': 'm.room.name',
'event_id': '2143273582443PhrSn:example.org',
'room_id': '!5345234234:example.com',
'sender': '@example:example.org',
'origin_server_ts': 1432735824653,
'unsigned': {'age': 1234},
'state_key': ''
},
]
},
'account_data': {
'events': [
{
'type': 'test.type.data',
'content': {'foo': 'bar'},
},
],
},
},
'!5345234235:example.com': {
'timeline': {'events': []},
'state': {
'events': [
{
'content': {'name': 'The room name 2'},
'type': 'm.room.name',
'event_id': '2143273582443PhrSn:example.org',
'room_id': '!5345234235:example.com',
'sender': '@example:example.org',
'origin_server_ts': 1432735824653,
'unsigned': {'age': 1234},
'state_key': ''
},
]
}
},
},
}
};