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