Closed LuisReinoso closed 5 years ago
Hi @LuisReinoso ,
I've just tried to reproduce it on the demo site and I can't. Could you please confirm if it happens to you on the live demo? https://ng-chat.azurewebsites.net/
I've been considering hiding the friends list if there is no viewport space to display at least one chat window.
Is that a big issue for you at the moment? I can add that to the queue for next release. We've got a few things planned to be implemented, I could add that on top.
Cheers!
I try to reproduce it in the live demo web page but not return any error.
This would be a nice feature.
I've been considering hiding the friends list if there is no viewport space to display at least one chat window.
I recorded my screen to you look the error: https://gifyu.com/image/NvBL. So isn't a big issue for me. What configuration of component will produce this error on my own implementation.
Hi @LuisReinoso ,
This looks strange. I will implement the feature I've mentioned above in the next release so it shouldn't be a big issue for you in the future.
I will leave this thread open and update you as soon as a new version is released.
Cheers!
Hi Please add this feature to next release. I am also waiting for this.
Hi @rpaschoal Please add this feature to next release. I am also waiting for this.
Hi @LuisReinoso and @ajaynshd
Just updating you guys on this. I've got the fix for this but haven't release yet. There is a bunch of things that will come on next release including being able to upload files.
You can check the progress here https://github.com/rpaschoal/ng-chat/compare/development?expand=1
I'll keep this issue opened and let you know when the new release is out.
Cheers.
Hi @LuisReinoso and @ajaynshd ,
I've just released 1.1.0 today and this is included. The friends list does not render if there isn't enough space for at least one chat window to be opened.
This behavior can be overridden using the hideFriendsListOnUnsupportedViewport
which defaults to true at the moment.
I'm try to open a chat when tap(click) on name of user chat, in google chrome's mobile view and google chrome mobile, and return an error "Cannot read property 'nativeElement' of undefined".
I search in your code and error occurs in line 378 - ng-chat.component.ts
The tap(click) event trigger
openChatWindow(user, true, true)
function line 10 - ng-chat.component.html I see that it's depends of viewport, but this not to have to return an error. I don't understand whythis.chatMessageClusters.toArray()[windowIndex]
it's undefined.To have a mobile compatibility, could hide list of users (# ng-chat-people) and show windows and when hide window. show list of users.
Thanks.!