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

This commit is contained in:
Ronan Abhamon 2017-12-05 15:24:14 +01:00
parent 72c20adc17
commit 8f1ee5a06d

View file

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