mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 01:54:40 +08:00
fix(message-controls): add accountId to debug values copied to clipboard
This commit is contained in:
parent
b92e4fa07b
commit
3327fc4cff
1 changed files with 5 additions and 4 deletions
|
@ -139,10 +139,11 @@ class MessageControls extends React.Component
|
|||
|
||||
_onCopyToClipboard: =>
|
||||
clipboard = require('electron').clipboard
|
||||
data = "Message ID: #{@props.message.serverId}\n"+
|
||||
"Message Metadata: #{JSON.stringify(@props.message.pluginMetadata, null, ' ')}\n"+
|
||||
"Thread ID: #{@props.thread.serverId}\n"+
|
||||
"Thread Metadata: #{JSON.stringify(@props.thread.pluginMetadata, null, ' ')}\n"
|
||||
data = "AccountID: #{@props.message.accountId}\n"+
|
||||
"Message ID: #{@props.message.serverId}\n"+
|
||||
"Message Metadata: #{JSON.stringify(@props.message.pluginMetadata, null, ' ')}\n"+
|
||||
"Thread ID: #{@props.thread.serverId}\n"+
|
||||
"Thread Metadata: #{JSON.stringify(@props.thread.pluginMetadata, null, ' ')}\n"
|
||||
|
||||
clipboard.writeText(data)
|
||||
|
||||
|
|
Loading…
Reference in a new issue