no avatar

This commit is contained in:
hatim boufnichel 2020-10-20 17:47:43 +02:00
parent 4d126ef180
commit c876f3e2a5

View file

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