You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
Make example actually work
This commit is contained in:
@@ -1509,7 +1509,7 @@ module.exports = Room;
|
||||
* added to the end of the live timeline
|
||||
*
|
||||
* @example
|
||||
* matrixClient.on("Room.timeline", function(event, room, toStartOfTimeline, data){
|
||||
* matrixClient.on("Room.timeline", function(event, room, toStartOfTimeline, removed, data){
|
||||
* if (!toStartOfTimeline && data.liveEvent) {
|
||||
* var messageToAppend = room.timeline.[room.timeline.length - 1];
|
||||
* }
|
||||
|
||||
Reference in New Issue
Block a user