1
0
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:
Kegsay
2016-08-30 15:11:06 +01:00
committed by GitHub
parent 84e2fc91ae
commit d356e722da

View File

@@ -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];
* }