Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblinphone
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
10
Issues
10
List
Board
Labels
Milestones
Merge Requests
23
Merge Requests
23
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
liblinphone
Commits
f58ba408
Commit
f58ba408
authored
Mar 15, 2018
by
Sylvain Berfini
🎩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved appData from FileContent to any Content
parent
23287aae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
chat-message.cpp
src/chat/chat-message/chat-message.cpp
+10
-10
No files found.
src/chat/chat-message/chat-message.cpp
View file @
f58ba408
...
...
@@ -236,23 +236,23 @@ void ChatMessagePrivate::setFileTransferFilepath (const string &path) {
const
string
&
ChatMessagePrivate
::
getAppdata
()
const
{
for
(
const
Content
*
c
:
getContents
())
{
if
(
c
->
isFile
())
{
FileContent
*
fileContent
=
(
FileContent
*
)
c
;
return
fileContent
->
getAppData
(
"legacy"
);
if
(
!
c
->
getAppData
(
"legacy"
).
empty
())
{
return
c
->
getAppData
(
"legacy"
);
}
}
return
Utils
::
getEmptyConstRefObject
<
string
>
();
}
void
ChatMessagePrivate
::
setAppdata
(
const
string
&
data
)
{
for
(
const
Content
*
c
:
getContents
())
{
if
(
c
->
isFile
())
{
FileContent
*
fileContent
=
(
FileContent
*
)
c
;
fileContent
->
setAppData
(
"legacy"
,
data
);
break
;
}
bool
contentFound
=
false
;
for
(
Content
*
c
:
getContents
())
{
c
->
setAppData
(
"legacy"
,
data
);
contentFound
=
true
;
break
;
}
if
(
contentFound
)
{
updateInDb
();
}
updateInDb
();
}
const
string
&
ChatMessagePrivate
::
getExternalBodyUrl
()
const
{
...
...
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