mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-14 17:02:17 +02:00
Merge pull request #611 from matrix-org/luke/fix-join-part-collapsing-use-state-key
Use `getStateKey` instead of `getSender`
This commit is contained in:
commit
4e1af30186
@ -181,7 +181,7 @@ module.exports = React.createClass({
|
|||||||
};
|
};
|
||||||
|
|
||||||
eventsToRender.forEach((e) => {
|
eventsToRender.forEach((e) => {
|
||||||
const userId = e.getSender();
|
const userId = e.getStateKey();
|
||||||
// Initialise a user's events
|
// Initialise a user's events
|
||||||
if (!userEvents[userId]) {
|
if (!userEvents[userId]) {
|
||||||
userEvents[userId] = {first: null, last: null};
|
userEvents[userId] = {first: null, last: null};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user