Fix / bad format of trail item

This commit is contained in:
Valere 2020-10-29 14:57:17 +01:00
parent f6ec7bc323
commit 909ee2cc85
2 changed files with 15 additions and 8 deletions

View file

@ -47,16 +47,23 @@ class IncomingKeyRequestPagedController @Inject constructor(
title(roomKeyRequest.requestId)
description(
span {
span("From user: ${roomKeyRequest.userId}")
+vectorDateFormatter.format(roomKeyRequest.localCreationTimestamp, DateFormatKind.DEFAULT_DATE_AND_TIME)
span("sessionId:") {
span("From: ") {
textStyle = "bold"
}
span("${roomKeyRequest.userId}")
+vectorDateFormatter.format(roomKeyRequest.localCreationTimestamp, DateFormatKind.DEFAULT_DATE_AND_TIME)
span("\nsessionId:") {
textStyle = "bold"
}
+"${roomKeyRequest.requestBody?.sessionId}"
span("\nFrom device:") {
textStyle = "bold"
}
+"${roomKeyRequest.deviceId}"
+"\n${roomKeyRequest.state.name}"
span("\nstate: ") {
textStyle = "bold"
}
+roomKeyRequest.state.name
}
)
}

View file

@ -43,19 +43,19 @@ class OutgoingKeyRequestPagedController @Inject constructor() : PagedListEpoxyCo
title(roomKeyRequest.requestId)
description(
span {
span("roomId:\n") {
span("roomId: ") {
textStyle = "bold"
}
+"${roomKeyRequest.roomId}"
span("sessionId:\n") {
span("\nsessionId: ") {
textStyle = "bold"
}
+"${roomKeyRequest.sessionId}"
span("\nstate:") {
span("\nstate: ") {
textStyle = "bold"
}
+"\n${roomKeyRequest.state.name}"
+roomKeyRequest.state.name
}
)
}