Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
matrix-react-sdk
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Matrix.org
matrix-react-sdk
Commits
2bce4e4d
Commit
2bce4e4d
authored
9 years ago
by
David Baker
Browse files
Options
Downloads
Patches
Plain Diff
Merge c62d97ca04efdfc59b8299319a3b8e4ea13ff6a3 from vector-im
The hack is *evil*. Not dirty.
parent
54048ee3
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/controllers/organisms/MemberList.js
+2
-2
2 additions, 2 deletions
src/controllers/organisms/MemberList.js
with
2 additions
and
2 deletions
src/controllers/organisms/MemberList.js
+
2
−
2
View file @
2bce4e4d
...
...
@@ -57,7 +57,7 @@ module.exports = {
// member tile and re-render it. This is more efficient than every tile
// evar attaching their own listener.
function
updateUserState
(
event
,
user
)
{
// evil hack to track the age of this presence info.
//
XXX:
evil hack to track the age of this presence info.
// this should be removed once syjs-28 is resolved in the JS SDK itself.
user
.
lastPresenceTs
=
Date
.
now
();
...
...
@@ -145,7 +145,7 @@ module.exports = {
var
all_members
=
room
.
currentState
.
members
;
var
all_user_ids
=
Object
.
keys
(
all_members
);
// XXX:
dirty
hack until SYJS-28 is fixed
// XXX:
evil
hack until SYJS-28 is fixed
all_user_ids
.
map
(
function
(
userId
)
{
if
(
all_members
[
userId
].
user
&&
!
all_members
[
userId
].
user
.
lastPresenceTs
)
{
all_members
[
userId
].
user
.
lastPresenceTs
=
Date
.
now
();
...
...
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