Merge pull request #221 from shocknet/fix/no-avatar-chat

no avatar
This commit is contained in:
Daniel Lugo 2020-10-20 11:53:05 -04:00 committed by GitHub
commit d68326af36

View file

@ -2093,8 +2093,11 @@ module.exports = async (
app.get(`/api/gun/${GunEvent.ON_CHATS}`, (_, res) => {
try {
const data = Events.getChats()
const noAvatar = data.map(mex => {
return { ...mex, recipientAvatar: null }
})
res.json({
data
noAvatar
})
} catch (err) {
logger.info('Error in Chats poll:')