mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Revert "Also set appData to FileTransfer contents"
This reverts commit cac63d006f.
This commit is contained in:
parent
36ae94cbe6
commit
52f13d34d0
1 changed files with 7 additions and 5 deletions
|
|
@ -186,17 +186,19 @@ void ChatMessagePrivate::setFileTransferFilepath (const string &path) {
|
|||
|
||||
const string &ChatMessagePrivate::getAppdata () const {
|
||||
for (const Content *c : contents) {
|
||||
if (c->getContentType().isFile() || c->getContentType() == ContentType::FileTransfer) {
|
||||
return c->getAppData("legacy");
|
||||
if (c->getContentType().isFile()) {
|
||||
FileContent *fileContent = (FileContent *)c;
|
||||
return fileContent->getAppData("legacy");
|
||||
}
|
||||
}
|
||||
return Utils::getEmptyConstRefObject<string>();
|
||||
}
|
||||
|
||||
void ChatMessagePrivate::setAppdata (const string &data) {
|
||||
for (Content *c : contents) {
|
||||
if (c->getContentType().isFile() || c->getContentType() == ContentType::FileTransfer) {
|
||||
c->setAppData("legacy", data);
|
||||
for (const Content *c : contents) {
|
||||
if (c->getContentType().isFile()) {
|
||||
FileContent *fileContent = (FileContent *)c;
|
||||
fileContent->setAppData("legacy", data);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue