Commit 8f1ee5a0 authored by Ronan's avatar Ronan

fix(ChatMessage): use "legacy" key instead of "app" for content app data

parent 72c20adc
......@@ -188,7 +188,7 @@ const string &ChatMessagePrivate::getAppdata () const {
for (const Content *c : contents) {
if (c->getContentType().isFile()) {
FileContent *fileContent = (FileContent *)c;
return fileContent->getAppData("app");
return fileContent->getAppData("legacy");
}
}
return Utils::getEmptyConstRefObject<string>();
......@@ -198,7 +198,7 @@ void ChatMessagePrivate::setAppdata (const string &data) {
for (const Content *c : contents) {
if (c->getContentType().isFile()) {
FileContent *fileContent = (FileContent *)c;
fileContent->setAppData("app", data);
fileContent->setAppData("legacy", data);
break;
}
}
......
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