angular-bootstrap-simple-chat icon indicating copy to clipboard operation
angular-bootstrap-simple-chat copied to clipboard

No possibility to change messages array

Open casper1149 opened this issue 10 years ago • 5 comments

Hi,

I am using your control for 1on1 chat, however I have several users in the list and when I switch between them, I am changing the messages array. Currently, since you are using vm.messages in the control, I am not able to change the messages array to display. So when I once select the user and set the messages array, I am not able to change it in the control. I have cloned your repo and changed the line '

' +

to

'

' +

Is there any reason to lock the messages array in the local scope? May be it would be better to make it optional, or just push my changes, what do you think about it?

casper1149 avatar Jul 14 '15 15:07 casper1149

@casper1149 will you please share the changes here in the comment... I am just stuck with this vm.messages array.... my sent messages come after i hit another event else they stuck some where ....don't know why... can you please explain?

khaled4vokalz avatar Sep 04 '15 18:09 khaled4vokalz

@casper1149 @khaled4vokalz Any new on this? Please share code snippet or make a pull request. I don't understand what do you mean with the 'not being able to change messages array'.

aitorllj93 avatar Sep 09 '15 15:09 aitorllj93

@aitorllj93 Hey, so the issue is, when I have a multiple users and I want to switch between dialogs, it is impossible to change the vm.messages, so as a workaround I made it to use $scope.<var_name>, @khaled4vokalz is using $scope.$apply but anyway it is all workarounds

casper1149 avatar Sep 09 '15 15:09 casper1149

I'm trying something, if I resolve this topic I send my solution.

YnievesDotNet avatar Sep 10 '15 12:09 YnievesDotNet

hi, any solution on this .

kittudev avatar Mar 25 '16 06:03 kittudev