},
"id" : "1",
"unread" : 2,
- "last_message" : {...} // The last message in that chat
+ "last_message" : {...}, // The last message in that chat
+ "updated_at": "2020-04-21T15:11:46.000Z"
}
```
...
},
"id" : "1",
- "unread" : 0
+ "unread" : 0,
+ "updated_at": "2020-04-21T15:11:46.000Z"
}
```
},
"id" : "1",
"unread" : 2,
- "last_message" : {...} // The last message in that chat
+ "last_message" : {...}, // The last message in that chat
+ "updated_at": "2020-04-21T15:11:46.000Z"
}
]
```
id: %Schema{type: :string},
account: %Schema{type: :object},
unread: %Schema{type: :integer},
- last_message: ChatMessage
+ last_message: ChatMessage,
+ updated_at: %Schema{type: :string, format: :"date-time"}
},
example: %{
"account" => %{
},
"id" => "1",
"unread" => 2,
- "last_message" => ChatMessage.schema().example()
+ "last_message" => ChatMessage.schema().example(),
+ "updated_at" => "2020-04-21T15:06:45.000Z"
}
})
end