You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-28 05:03:59 +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
|
* added to the end of the live timeline
|
||||||
*
|
*
|
||||||
* @example
|
* @example
|
||||||
* matrixClient.on("Room.timeline", function(event, room, toStartOfTimeline, data){
|
* matrixClient.on("Room.timeline", function(event, room, toStartOfTimeline, removed, data){
|
||||||
* if (!toStartOfTimeline && data.liveEvent) {
|
* if (!toStartOfTimeline && data.liveEvent) {
|
||||||
* var messageToAppend = room.timeline.[room.timeline.length - 1];
|
* var messageToAppend = room.timeline.[room.timeline.length - 1];
|
||||||
* }
|
* }
|
||||||
|
|||||||
Reference in New Issue
Block a user