Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
eaecac85
Commit
eaecac85
authored
Jan 17, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(src/components/chat/ChatModel): create thumbnail when message is sent
parent
490ff801
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ChatModel.cpp
tests/src/components/chat/ChatModel.cpp
+2
-2
No files found.
tests/src/components/chat/ChatModel.cpp
View file @
eaecac85
...
...
@@ -356,8 +356,6 @@ void ChatModel::resendMessage (int id) {
case
MessageStatusNotDelivered
:
{
shared_ptr
<
linphone
::
ChatMessage
>
message
=
static_pointer_cast
<
linphone
::
ChatMessage
>
(
entry
.
second
);
// TODO: Remove workaround in a future linphone core version.
// `sendChatMessage` duplicates the message on resend.
shared_ptr
<
linphone
::
ChatMessage
>
message2
=
message
->
clone
();
message2
->
setListener
(
m_message_handlers
);
m_chat_room
->
sendChatMessage
(
message2
);
...
...
@@ -391,6 +389,8 @@ void ChatModel::sendFileMessage (const QString &path) {
message
->
setFileTransferFilepath
(
::
Utils
::
qStringToLinphoneString
(
path
));
message
->
setListener
(
m_message_handlers
);
createThumbnail
(
message
);
insertMessageAtEnd
(
message
);
m_chat_room
->
sendChatMessage
(
message
);
...
...
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