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
e414951c
Commit
e414951c
authored
Sep 01, 2017
by
Ghislain MARY
Browse files
Really fix duration of remote refresh timer for is-composing.
parent
5c8fe022
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
src/chat/is-composing.cpp
src/chat/is-composing.cpp
+4
-5
src/chat/is-composing.h
src/chat/is-composing.h
+1
-1
No files found.
src/chat/is-composing.cpp
View file @
e414951c
...
...
@@ -123,8 +123,10 @@ void IsComposing::startRefreshTimer () {
}
}
void
IsComposing
::
startRemoteRefreshTimer
()
{
void
IsComposing
::
startRemoteRefreshTimer
(
const
char
*
refreshStr
)
{
int
duration
=
getRemoteRefreshTimerDuration
();
if
(
refreshStr
)
duration
=
atoi
(
refreshStr
);
if
(
!
remoteRefreshTimer
)
{
remoteRefreshTimer
=
sal_create_timer
(
core
->
sal
,
remoteRefreshTimerExpired
,
this
,
duration
*
1000
,
"composing remote refresh timeout"
);
...
...
@@ -217,11 +219,8 @@ void IsComposing::parse (xmlparsing_context_t *xmlCtx) {
if
(
stateStr
)
{
if
(
strcmp
(
stateStr
,
"active"
)
==
0
)
{
//int refreshDuration = getRefreshTimerDuration();
state
=
true
;
//if (refreshStr)
// refreshDuration = atoi(refreshStr);
startRemoteRefreshTimer
();
startRemoteRefreshTimer
(
refreshStr
);
}
else
{
stopRemoteRefreshTimer
();
}
...
...
src/chat/is-composing.h
View file @
e414951c
...
...
@@ -39,7 +39,7 @@ public:
void
parse
(
const
std
::
string
&
content
);
void
startIdleTimer
();
void
startRefreshTimer
();
void
startRemoteRefreshTimer
();
void
startRemoteRefreshTimer
(
const
char
*
refreshStr
);
void
stopComposing
();
void
stopIdleTimer
();
void
stopRefreshTimer
();
...
...
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