Fixes a minor rebase quirk (#2016)

See commit fc7b311838
This commit is contained in:
Samuel Hawksby-Robinson 2020-08-13 18:57:17 +01:00 committed by GitHub
parent 2d0818d873
commit 19487da894
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -177,9 +177,8 @@ func (db sqlitePersistence) tableUserMessagesScanAllFields(row scanner, message
case protobuf.ChatMessage_STICKER:
message.Payload = &protobuf.ChatMessage_Sticker{Sticker: sticker}
if message.ContentType == protobuf.ChatMessage_AUDIO {
message.Payload = &protobuf.ChatMessage_Audio{Audio: audio}
}
case protobuf.ChatMessage_AUDIO:
message.Payload = &protobuf.ChatMessage_Audio{Audio: audio}
case protobuf.ChatMessage_TRANSACTION_COMMAND:
message.CommandParameters = command