Add analytics for the ViewRoom action (#7666)
This commit is contained in:
parent
20e9d0c159
commit
0d6ef76605
53 changed files with 332 additions and 159 deletions
|
@ -59,6 +59,7 @@ import { ELEMENT_CLIENT_ID } from "../../identifiers";
|
|||
import { getUserLanguage } from "../../languageHandler";
|
||||
import { WidgetVariableCustomisations } from "../../customisations/WidgetVariables";
|
||||
import { arrayFastClone } from "../../utils/arrays";
|
||||
import { ViewRoomPayload } from "../../dispatcher/payloads/ViewRoomPayload";
|
||||
|
||||
// TODO: Destroy all of this code
|
||||
|
||||
|
@ -293,9 +294,10 @@ export class StopGapWidget extends EventEmitter {
|
|||
}
|
||||
|
||||
// at this point we can change rooms, so do that
|
||||
defaultDispatcher.dispatch({
|
||||
defaultDispatcher.dispatch<ViewRoomPayload>({
|
||||
action: Action.ViewRoom,
|
||||
room_id: targetRoomId,
|
||||
_trigger: "Widget",
|
||||
});
|
||||
|
||||
// acknowledge so the widget doesn't freak out
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue