Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iframe Event NOT registering "click-message-link" #13859

Closed
fasttrackhost opened this issue Mar 22, 2019 · 0 comments · Fixed by #16771
Closed

Iframe Event NOT registering "click-message-link" #13859

fasttrackhost opened this issue Mar 22, 2019 · 0 comments · Fixed by #16771
Assignees
Milestone

Comments

@fasttrackhost
Copy link

fasttrackhost commented Mar 22, 2019

Description:

Iframe Events NOT registering "click-message-link"

We can register "unread-changed-by-subscription","unread-changed","room-opened","new-message" but no click event is registered.

Since the rest of the events are registered correctly, we supose RocketChat is not sending this event "click-message-link"

It is a important issue for us, since we have embeded RocketChat in a IFrame and we need to capture events going inside the IFrame. We push messages inside RocketChat Rooms with Links (using Rest-Api) and we need to know when Links are clicked to give the user the correct info. But the event "click-message-link" wont fire. Tried all type of links: with/without preview.

This bug was already described in #7579 but seems 2 years later nobody took it seriously.

Please also see our Request #13858

Steps to reproduce:

  1. Embend RocketChat in a Iframe in another web
  2. Create event listener:
window.addEventListener('message', function(e) {
		eventName=e.data.eventName;
			console.log("eventName: "+eventName); // event name
			console.log("e.data: "+e.data.data); // event data
});
  1. "click-message-link" will never be loged, other events ("unread-changed-by-subscription","unread-changed","room-opened","new-message") are loged correctly.

Expected behavior:

Receive a event "click-message-link"

Please also see our Request #13858

Server Setup Information:

Version of Rocket.Chat Server: 0.74.2
Operating System: Linux x64, Ubuntu 18.04
Deployment Method: snap
Number of Running Instances: 1
NodeJS Version: v8.11.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants