Commit 1e285da9 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Fix creation of ChatMessage from history if id is null

parent 83e8d95a
......@@ -297,7 +297,9 @@ int ChatRoomPrivate::createChatMessageFromDb (int argc, char **argv, char **colN
if (argv[10]) {
message->setAppdata(argv[10]);
}
message->setId(argv[12]);
if (argv[12]) {
message->setId(argv[12]);
}
message->setIsSecured((bool)atoi(argv[14]));
if (argv[11]) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment