Fix timeline/profile updates messages

This commit is contained in:
Andrea Maria Piana 2021-09-21 11:14:54 +01:00
parent 049afe5765
commit bd314b8adc
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
0.88.0 0.88.1

View File

@ -1072,7 +1072,7 @@ func (m *Messenger) matchChatEntity(chatEntity common.ChatEntity) (*Chat, error)
if !ok { if !ok {
return nil, errors.New("received a public chatEntity from non-existing chat") return nil, errors.New("received a public chatEntity from non-existing chat")
} }
if !chat.Public() { if !chat.Public() && !chat.ProfileUpdates() && !chat.Timeline() {
return nil, ErrMessageForWrongChatType return nil, ErrMessageForWrongChatType
} }
return chat, nil return chat, nil