Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
savoirfairelinux
jami-lrc
Commits
54068968
Commit
54068968
authored
Apr 10, 2020
by
Ming Rui Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conversation: check profile type when setting interaction read status
Change-Id: Iff25f1884385bd26e98c5be80b73579e42352282
parent
68a8f179
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/conversationmodel.cpp
src/conversationmodel.cpp
+3
-1
No files found.
src/conversationmodel.cpp
View file @
54068968
...
...
@@ -1124,7 +1124,9 @@ ConversationModel::setInteractionRead(const QString& convId,
if
(
emitUpdated
)
{
pimpl_
->
dirtyConversations
=
{
true
,
true
};
auto
daemonId
=
storage
::
getDaemonIdByInteractionId
(
pimpl_
->
db
,
QString
::
number
(
interactionId
));
ConfigurationManager
::
instance
().
setMessageDisplayed
(
owner
.
id
,
pimpl_
->
conversations
[
conversationIdx
].
participants
.
front
(),
daemonId
,
3
);
if
(
owner
.
profileInfo
.
type
!=
profile
::
Type
::
SIP
)
{
ConfigurationManager
::
instance
().
setMessageDisplayed
(
owner
.
id
,
pimpl_
->
conversations
[
conversationIdx
].
participants
.
front
(),
daemonId
,
3
);
}
storage
::
setInteractionRead
(
pimpl_
->
db
,
interactionId
);
emit
interactionStatusUpdated
(
convId
,
interactionId
,
itCopy
);
emit
pimpl_
->
behaviorController
.
newReadInteraction
(
owner
.
id
,
convId
,
interactionId
);
...
...
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