Files: 4ae9c2d21f4b6d8fc91aeb1a890c40180b8a4c7f / lib / getMsgContent.js
205 bytesRaw
1 | module.exports = function getMsgContent (obj) { |
2 | if (obj.value && obj.value.content) return obj.value.content |
3 | else if (obj.author && obj.timestamp && obj.content) return obj.content |
4 | else return obj |
5 | } |
6 |
Built with git-ssb-web