Skip to content

Commit 637606e

Browse files
committed
add warning if we reach the deprecated code path.
1 parent 075543a commit 637606e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ClientWidgetApi.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,10 @@ export class ClientWidgetApi extends EventEmitter {
525525
// For backwards compatibility we still call the deprecated
526526
// readRoomEvents and readStateEvents methods in case the client isn't
527527
// letting us know the currently viewed room via setViewedRoomId
528+
console.warn(
529+
"The widgetDriver uses deprecated behaviour:\n"+
530+
"It does not set the viewedRoomId using `setViewedRoomId`"
531+
);
528532
events = await (
529533
// This returns [] with the current driver of Element Web.
530534
// Add default implementations of the `readRoomEvents` and `readStateEvents`

0 commit comments

Comments
 (0)