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

ChatManager to manage sending/receiving of chat messages #143

Merged
merged 13 commits into from
Jan 15, 2024
Merged

Conversation

davidzhao
Copy link
Member

No description provided.

@davidzhao
Copy link
Member Author

@theomonnom I can't seem to load the shared libs in the test here. Any ideas?

@theomonnom
Copy link
Member

theomonnom commented Jan 14, 2024

We need to download the FFI binaries inside the test workflow. Will do it tmrw

It is as easy as executing the download-ffi.py script to the resources path

@davidzhao
Copy link
Member Author

We need to download the FFI binaries inside the test workflow. Will do it tmrw

It is as easy as executing the download-ffi.py script to the resources path

that worked. Thanks!

_CHAT_UPDATE_TOPIC = "lk-chat-update-topic"


class ChatManager:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this class also accumulate chat messages with a sane default way of updating chat messages (i.e. setting deleted from false to true)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I def want to in the future.. just wanted to keep it simple because if we started buffering, we'd need a way to clean it up too to avoid it buffering forever

@keepingitneil
Copy link
Contributor

@theomonnom
Copy link
Member

theomonnom commented Jan 15, 2024

@davidzhao @theomonnom I did it here as well. Maybe this can be a shared workflow step: https://github.com/livekit/python-sdks/pull/135/files#diff-4fdc48ab490b670c90974725b8e3d399b24c03d6d09563acf8ea87d4113930fbR55

No need, it's one internal line. I think you're complicating it inside your build_docs workflow. Only livekit-rtc needs it

@theomonnom
Copy link
Member

theomonnom commented Jan 15, 2024

Screenshot 2024-01-15 at 9 24 50 AM We don't have CI yet, but here are some types complaints with mypy

@davidzhao
Copy link
Member Author

@theomonnom I don't have mypy setup.. It'll be faster if you can please fix lint issues directly. I'd like to get this released so we can update everything else

Copy link
Member

@theomonnom theomonnom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, lgtm!

@theomonnom
Copy link
Member

nvm last thing is: do we need on_message_updated?
Ok to merge before anyway

@davidzhao
Copy link
Member Author

nvm last thing is: do we need on_message_updated? Ok to merge before anyway

Thanks! we don't need it right now. Will add this once finalized across clients

@davidzhao davidzhao merged commit 755478d into main Jan 15, 2024
10 checks passed
@davidzhao davidzhao deleted the chat-manager branch January 15, 2024 08:49
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 this pull request may close these issues.

3 participants