diff --git a/protocol/message_persistence.go b/protocol/message_persistence.go index fc4cbf51e..3426ce636 100644 --- a/protocol/message_persistence.go +++ b/protocol/message_persistence.go @@ -172,6 +172,9 @@ func (db sqlitePersistence) tableUserMessagesScanAllFields(row scanner, message } message.Alias = alias.String message.Identicon = identicon.String + + // TODO switch + if message.ContentType == protobuf.ChatMessage_STICKER { message.Payload = &protobuf.ChatMessage_Sticker{Sticker: sticker} }