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

bruig: Add new GC to chat list #376

Merged
merged 2 commits into from
Nov 9, 2023
Merged

Conversation

alexlyp
Copy link
Member

@alexlyp alexlyp commented Nov 9, 2023

Fix #359

@@ -734,6 +734,14 @@ class ClientModel extends ChangeNotifier {

Map<String, ChatModel> _activeChats = Map<String, ChatModel>();
ChatModel? getExistingChat(String uid) => _activeChats[uid];
ChatModel? getExistingChatByNick(String nick) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is not safe because you can have a gc and a user with the same nick/alias

you need to specify a isGC bool or modify Golib.createGC to return the uid of the gc and then use that uid to getExistingChat

@alexlyp alexlyp merged commit 2436ee2 into companyzero:master Nov 9, 2023
5 checks passed
@alexlyp alexlyp deleted the ayp_new_rooms branch November 9, 2023 17:38
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.

Newly Created Chats Not Visible in Chat Rooms on brui
2 participants