web: show message-ID when viewing thread
This commit is contained in:
parent
ac5660a6d0
commit
071fe2e206
@ -207,6 +207,22 @@
|
|||||||
"description": null,
|
"description": null,
|
||||||
"enumValues": null,
|
"enumValues": null,
|
||||||
"fields": [
|
"fields": [
|
||||||
|
{
|
||||||
|
"args": [],
|
||||||
|
"deprecationReason": null,
|
||||||
|
"description": null,
|
||||||
|
"isDeprecated": false,
|
||||||
|
"name": "id",
|
||||||
|
"type": {
|
||||||
|
"kind": "NON_NULL",
|
||||||
|
"name": null,
|
||||||
|
"ofType": {
|
||||||
|
"kind": "SCALAR",
|
||||||
|
"name": "String",
|
||||||
|
"ofType": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"args": [],
|
"args": [],
|
||||||
"deprecationReason": null,
|
"deprecationReason": null,
|
||||||
|
|||||||
@ -2,6 +2,7 @@ query ShowThreadQuery($threadId: String!) {
|
|||||||
thread(threadId: $threadId) {
|
thread(threadId: $threadId) {
|
||||||
subject
|
subject
|
||||||
messages {
|
messages {
|
||||||
|
id
|
||||||
subject
|
subject
|
||||||
from {
|
from {
|
||||||
name
|
name
|
||||||
|
|||||||
@ -263,6 +263,7 @@ fn view_thread(thread: &ShowThreadQueryThread) -> Node<Msg> {
|
|||||||
.map(|from| div![C!["header"], "From: ", view_address(&from)]),
|
.map(|from| div![C!["header"], "From: ", view_address(&from)]),
|
||||||
msg.timestamp
|
msg.timestamp
|
||||||
.map(|ts| div![C!["header"], "Date: ", human_age(ts)]),
|
.map(|ts| div![C!["header"], "Date: ", human_age(ts)]),
|
||||||
|
div!["Message-ID: ", &msg.id],
|
||||||
div![
|
div![
|
||||||
C!["header"],
|
C!["header"],
|
||||||
IF!(!msg.to.is_empty() => span!["To: ", view_addresses(&msg.to)]),
|
IF!(!msg.to.is_empty() => span!["To: ", view_addresses(&msg.to)]),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user