Skip to content

Commit 03c7300

Browse files
committed
add warning if we reach the deprecated code path.
1 parent 9cf15e4 commit 03c7300

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ClientWidgetApi.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,9 @@ export class ClientWidgetApi extends EventEmitter {
537537
// For backwards compatibility we still call the deprecated
538538
// readRoomEvents and readStateEvents methods in case the client isn't
539539
// letting us know the currently viewed room via setViewedRoomId
540+
console.warn(
541+
"The widgetDriver uses deprecated behaviour:\n It does not set the viewedRoomId using `setViewedRoomId`",
542+
);
540543
events = await // This returns [] with the current driver of Element Web.
541544
// Add default implementations of the `readRoomEvents` and `readStateEvents`
542545
// methods to use `readRoomTimeline` and `readRoomState` if they are not overwritten.

0 commit comments

Comments
 (0)