Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
7c4b4765
Commit
7c4b4765
authored
10 years ago
by
Emmanuel ROHEE
Browse files
Options
Downloads
Patches
Plain Diff
The away state is unavailable not offline
parent
e76cd252
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
webclient/components/matrix/presence-service.js
+7
-7
7 additions, 7 deletions
webclient/components/matrix/presence-service.js
with
7 additions
and
7 deletions
webclient/components/matrix/presence-service.js
+
7
−
7
View file @
7c4b4765
...
...
@@ -23,9 +23,9 @@
angular
.
module
(
'
mPresence
'
,
[])
.
service
(
'
mPresence
'
,
[
'
$timeout
'
,
'
matrixService
'
,
function
(
$timeout
,
matrixService
)
{
// Time in ms after that a user is considered as
offlin
e/away
var
OFFLIN
E_TIME
=
5
*
60000
;
// 5 mins
// Time in ms after that a user is considered as
unavailabl
e/away
var
UNAVAILABL
E_TIME
=
5
*
60000
;
// 5 mins
// The current presence state
var
state
=
undefined
;
...
...
@@ -88,11 +88,11 @@ angular.module('mPresence', [])
};
/**
* Callback called when the user made no action on the page for
OFFLIN
E_TIME ms.
* Callback called when the user made no action on the page for
UNAVAILABL
E_TIME ms.
* @private
*/
function
on
Offlin
eTimerFire
()
{
self
.
setState
(
matrixService
.
presence
.
offlin
e
);
function
on
Unvailabl
eTimerFire
()
{
self
.
setState
(
matrixService
.
presence
.
unavailabl
e
);
}
/**
...
...
@@ -105,7 +105,7 @@ angular.module('mPresence', [])
// Re-arm the timer
$timeout
.
cancel
(
timer
);
timer
=
$timeout
(
on
Offlin
eTimerFire
,
OFFLIN
E_TIME
);
timer
=
$timeout
(
on
Unvailabl
eTimerFire
,
UNAVAILABL
E_TIME
);
}
}]);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment