diff --git a/package.json b/package.json index c14c021cd..dda4b3812 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "homepage": "https://evgeny-nadymov.github.io/telegram-react", "name": "telegram_react", - "version": "0.0.996", + "version": "0.1.0", "private": true, "dependencies": { "@material-ui/core": "^4.9.7", diff --git a/src/Utils/Chat.js b/src/Utils/Chat.js index a158eebd1..187b563db 100644 --- a/src/Utils/Chat.js +++ b/src/Utils/Chat.js @@ -530,6 +530,11 @@ function getMessageSenderName(message, t = k => k) { return null; } + if (!sender_id) { + console.log('[sender_id] empty', message); + return null; + } + switch (sender_id['@type']) { case 'messageSenderUser': { if (isMeUser(sender_id.user_id)) {