avatar null initial state

This commit is contained in:
Daniel Lugo 2020-01-28 20:51:57 -04:00
parent aa80f58cbe
commit d58b9cc78b

View file

@ -581,7 +581,7 @@ const onChats = (cb, gun, user, SEA) => {
if (!recipientPKToChat[recipientPK]) { if (!recipientPKToChat[recipientPK]) {
recipientPKToChat[recipientPK] = { recipientPKToChat[recipientPK] = {
messages: [], messages: [],
recipientAvatar: '', recipientAvatar: null,
recipientDisplayName: Utils.defaultName(recipientPK), recipientDisplayName: Utils.defaultName(recipientPK),
recipientPublicKey: recipientPK, recipientPublicKey: recipientPK,
didDisconnect, didDisconnect,
@ -621,7 +621,7 @@ const onChats = (cb, gun, user, SEA) => {
if (!recipientPKToChat[recipientPK]) { if (!recipientPKToChat[recipientPK]) {
recipientPKToChat[recipientPK] = { recipientPKToChat[recipientPK] = {
messages: [], messages: [],
recipientAvatar: '', recipientAvatar: null,
recipientDisplayName: Utils.defaultName(recipientPK), recipientDisplayName: Utils.defaultName(recipientPK),
recipientPublicKey: recipientPK, recipientPublicKey: recipientPK,
didDisconnect, didDisconnect,