diff --git a/web/graphql/schema.json b/web/graphql/schema.json index 50d3495..2e7095c 100644 --- a/web/graphql/schema.json +++ b/web/graphql/schema.json @@ -207,6 +207,22 @@ "description": null, "enumValues": null, "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, { "args": [], "deprecationReason": null, diff --git a/web/graphql/show_thread.graphql b/web/graphql/show_thread.graphql index 14eb3eb..41c7d04 100644 --- a/web/graphql/show_thread.graphql +++ b/web/graphql/show_thread.graphql @@ -2,6 +2,7 @@ query ShowThreadQuery($threadId: String!) { thread(threadId: $threadId) { subject messages { + id subject from { name diff --git a/web/src/view/mod.rs b/web/src/view/mod.rs index 199fc07..7a2578f 100644 --- a/web/src/view/mod.rs +++ b/web/src/view/mod.rs @@ -263,6 +263,7 @@ fn view_thread(thread: &ShowThreadQueryThread) -> Node { .map(|from| div![C!["header"], "From: ", view_address(&from)]), msg.timestamp .map(|ts| div![C!["header"], "Date: ", human_age(ts)]), + div!["Message-ID: ", &msg.id], div![ C!["header"], IF!(!msg.to.is_empty() => span!["To: ", view_addresses(&msg.to)]),