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

chatId not passed to widget #5

Open
ohager opened this issue Jun 8, 2023 · 3 comments · May be fixed by #6
Open

chatId not passed to widget #5

ohager opened this issue Jun 8, 2023 · 3 comments · May be fixed by #6

Comments

@ohager
Copy link

ohager commented Jun 8, 2023

The chatId remains undefined....

https://github.com/pablof7z/nostr-chat-widget/blob/main/src/widget.js#L24

will provide a PR - this is just for the records

@ohager
Copy link
Author

ohager commented Jun 8, 2023

Not sure, if this is on my side... but trying to use the group chat feature, I'm not able to make it work. After I forked and made it run on my local machine, I opened two chats in different tabs using the following parameters:

      data-chat-type="GROUP"
      data-chat-id="dd7d4b77a402d05995e0f73e41b7876839ed1ae26cf16c931f022216bb59f730"

I am able to send the messages, but they don't appear on the other client side. The hex key as chat-id is converted from note1m475kaayqtg9n90q7ulyrdu8dqu76xhzdnckeyclqg3pdw6e7ucqwkprj8

Am I doing wrong? Or is this really a bug? @pablof7z

@ohager
Copy link
Author

ohager commented Jun 8, 2023

ok... I figured out that the svelte version works as expected....So my assumptions regarding group id are correct, but the bundle seems to have issues... investigating

@ohager ohager linked a pull request Jun 8, 2023 that will close this issue
3 tasks
@gzuuus
Copy link

gzuuus commented Jun 13, 2023

Same issue here!

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

Successfully merging a pull request may close this issue.

2 participants