import Chat from './chat.js' import {Name} from './name.js' export default { data: ()=> ({ recipient: null, message: '' }), methods: { messageObjects: Chat.methods.messageObjects, chatObjects(objects) { return this.messageObjects(objects).filter(o=> '_to' in o && o._to.length == 1) }, sendMessage() { if (!this.message) return this.$graffitiUpdate({ message: this.message, timestamp: Date.now(), _to: [this.recipient], _tags: [this.$graffitiMyID, this.recipient] }) this.message = '' } }, template: ` Send private message to:

My Outbox

My Inbox

` }