Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
52f13d34
Commit
52f13d34
authored
Dec 05, 2017
by
Sylvain Berfini
🎩
Browse files
Revert "Also set appData to FileTransfer contents"
This reverts commit
cac63d00
.
parent
36ae94cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
src/chat/chat-message/chat-message.cpp
src/chat/chat-message/chat-message.cpp
+7
-5
No files found.
src/chat/chat-message/chat-message.cpp
View file @
52f13d34
...
@@ -186,17 +186,19 @@ void ChatMessagePrivate::setFileTransferFilepath (const string &path) {
...
@@ -186,17 +186,19 @@ void ChatMessagePrivate::setFileTransferFilepath (const string &path) {
const
string
&
ChatMessagePrivate
::
getAppdata
()
const
{
const
string
&
ChatMessagePrivate
::
getAppdata
()
const
{
for
(
const
Content
*
c
:
contents
)
{
for
(
const
Content
*
c
:
contents
)
{
if
(
c
->
getContentType
().
isFile
()
||
c
->
getContentType
()
==
ContentType
::
FileTransfer
)
{
if
(
c
->
getContentType
().
isFile
())
{
return
c
->
getAppData
(
"legacy"
);
FileContent
*
fileContent
=
(
FileContent
*
)
c
;
return
fileContent
->
getAppData
(
"legacy"
);
}
}
}
}
return
Utils
::
getEmptyConstRefObject
<
string
>
();
return
Utils
::
getEmptyConstRefObject
<
string
>
();
}
}
void
ChatMessagePrivate
::
setAppdata
(
const
string
&
data
)
{
void
ChatMessagePrivate
::
setAppdata
(
const
string
&
data
)
{
for
(
Content
*
c
:
contents
)
{
for
(
const
Content
*
c
:
contents
)
{
if
(
c
->
getContentType
().
isFile
()
||
c
->
getContentType
()
==
ContentType
::
FileTransfer
)
{
if
(
c
->
getContentType
().
isFile
())
{
c
->
setAppData
(
"legacy"
,
data
);
FileContent
*
fileContent
=
(
FileContent
*
)
c
;
fileContent
->
setAppData
(
"legacy"
,
data
);
break
;
break
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment