fix(message-controls): add accountId to debug values copied to clipboard

This commit is contained in:
Drew Regitsky 2016-02-26 15:13:33 -08:00
parent b92e4fa07b
commit 3327fc4cff

View file

@ -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)