commit
d68326af36
1 changed files with 4 additions and 1 deletions
|
|
@ -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:')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue