Changes rtl check in ChatMessages class (#4049)
Changes rtl check in ChatMessages class (#4049)

* Added view-d-room to guest role

So they can see direct messages.

* valueChanged optimization

valueChange checks if the text is rtl or ltr on every input, changed the method to check only the first input.

* Update startup.coffee

* Fixes pr #4049

fixes the value.lenght to value.length and used the this.value instead of the value in the parameter

* Update chatMessages.coffee

* Update startup.coffee

* Update startup.coffee

flaviogrossi/Rocket.Chat,LearnersGuild/echo-chat,xasx/Rocket.Chat,inoxth/Rocket.Chat,tntobias/Rocket.Chat,yuyixg/Rocket.Chat,wtsarchive/Rocket.Chat,inoio/Rocket.Chat,LearnersGuild/echo-chat,JamesHGreen/Rocket.Chat,BorntraegerMarc/Rocket.Chat,ealbers/Rocket.Chat,mrinaldhar/Rocket.Chat,ahmadassaf/Rocket.Chat,wtsarchive/Rocket.Chat,pitamar/Rocket.Chat,nishimaki10/Rocket.Chat,BorntraegerMarc/Rocket.Chat,snaiperskaya96/Rocket.Chat,pachox/Rocket.Chat,igorstajic/Rocket.Chat,pitamar/Rocket.Chat,ealbers/Rocket.Chat,JamesHGreen/Rocket_API,LearnersGuild/Rocket.Chat,k0nsl/Rocket.Chat,fatihwk/Rocket.Chat,Kiran-Rao/Rocket.Chat,ggazzo/Rocket.Chat,pkgodara/Rocket.Chat,BorntraegerMarc/Rocket.Chat,inoxth/Rocket.Chat,galrotem1993/Rocket.Chat,abduljanjua/TheHub,Sing-Li/Rocket.Chat,Movile/Rocket.Chat,Movile/Rocket.Chat,trt15-ssci-organization/Rocket.Chat,Achaikos/Rocket.Chat,wtsarchive/Rocket.Chat,galrotem1993/Rocket.Chat,ggazzo/Rocket.Chat,mwharrison/Rocket.Chat,Achaikos/Rocket.Chat,ggazzo/Rocket.Chat,VoiSmart/Rocket.Chat,xasx/Rocket.Chat,cnash/Rocket.Chat,AlecTroemel/Rocket.Chat,JamesHGreen/Rocket.Chat,AimenJoe/Rocket.Chat,ziedmahdi/Rocket.Chat,marzieh312/Rocket.Chat,danielbressan/Rocket.Chat,tntobias/Rocket.Chat,igorstajic/Rocket.Chat,danielbressan/Rocket.Chat,Gyubin/Rocket.Chat,mwharrison/Rocket.Chat,Gudii/Rocket.Chat,k0nsl/Rocket.Chat,fatihwk/Rocket.Chat,VoiSmart/Rocket.Chat,ahmadassaf/Rocket.Chat,subesokun/Rocket.Chat,mwharrison/Rocket.Chat,mrinaldhar/Rocket.Chat,ziedmahdi/Rocket.Chat,Kiran-Rao/Rocket.Chat,ziedmahdi/Rocket.Chat,alexbrazier/Rocket.Chat,karlprieb/Rocket.Chat,subesokun/Rocket.Chat,nishimaki10/Rocket.Chat,matthewshirley/Rocket.Chat,VoiSmart/Rocket.Chat,danielbressan/Rocket.Chat,abduljanjua/TheHub,mrsimpson/Rocket.Chat,NMandapaty/Rocket.Chat,fatihwk/Rocket.Chat,galrotem1993/Rocket.Chat,intelradoux/Rocket.Chat,ahmadassaf/Rocket.Chat,cnash/Rocket.Chat,flaviogrossi/Rocket.Chat,yuyixg/Rocket.Chat,cnash/Rocket.Chat,intelradoux/Rocket.Chat,intelradoux/Rocket.Chat,mrsimpson/Rocket.Chat,fatihwk/Rocket.Chat,Sing-Li/Rocket.Chat,matthewshirley/Rocket.Chat,karlprieb/Rocket.Chat,mrinaldhar/Rocket.Chat,trt15-ssci-organization/Rocket.Chat,Kiran-Rao/Rocket.Chat,NMandapaty/Rocket.Chat,pachox/Rocket.Chat,inoxth/Rocket.Chat,pkgodara/Rocket.Chat,marzieh312/Rocket.Chat,marzieh312/Rocket.Chat,alexbrazier/Rocket.Chat,yuyixg/Rocket.Chat,mwharrison/Rocket.Chat,Gudii/Rocket.Chat,JamesHGreen/Rocket_API,AlecTroemel/Rocket.Chat,NMandapaty/Rocket.Chat,yuyixg/Rocket.Chat,Gyubin/Rocket.Chat,ealbers/Rocket.Chat,tntobias/Rocket.Chat,alexbrazier/Rocket.Chat,Gyubin/Rocket.Chat,pitamar/Rocket.Chat,matthewshirley/Rocket.Chat,intelradoux/Rocket.Chat,tntobias/Rocket.Chat,mrinaldhar/Rocket.Chat,mrsimpson/Rocket.Chat,LearnersGuild/echo-chat,4thParty/Rocket.Chat,Gyubin/Rocket.Chat,nishimaki10/Rocket.Chat,4thParty/Rocket.Chat,JamesHGreen/Rocket.Chat,abduljanjua/TheHub,ealbers/Rocket.Chat,snaiperskaya96/Rocket.Chat,JamesHGreen/Rocket_API,subesokun/Rocket.Chat,xasx/Rocket.Chat,flaviogrossi/Rocket.Chat,inoio/Rocket.Chat,galrotem1993/Rocket.Chat,matthewshirley/Rocket.Chat,Movile/Rocket.Chat,snaiperskaya96/Rocket.Chat,ahmadassaf/Rocket.Chat,NMandapaty/Rocket.Chat,pachox/Rocket.Chat,pkgodara/Rocket.Chat,Sing-Li/Rocket.Chat,4thParty/Rocket.Chat,Kiran-Rao/Rocket.Chat,igorstajic/Rocket.Chat,JamesHGreen/Rocket_API,LearnersGuild/Rocket.Chat,pkgodara/Rocket.Chat,xasx/Rocket.Chat,pitamar/Rocket.Chat,karlprieb/Rocket.Chat,nishimaki10/Rocket.Chat,subesokun/Rocket.Chat,mrsimpson/Rocket.Chat,AimenJoe/Rocket.Chat,JamesHGreen/Rocket.Chat,LearnersGuild/Rocket.Chat,AimenJoe/Rocket.Chat,inoio/Rocket.Chat,snaiperskaya96/Rocket.Chat,pachox/Rocket.Chat,marzieh312/Rocket.Chat,cnash/Rocket.Chat,inoxth/Rocket.Chat,Gudii/Rocket.Chat,k0nsl/Rocket.Chat,ziedmahdi/Rocket.Chat,BorntraegerMarc/Rocket.Chat,Movile/Rocket.Chat,trt15-ssci-organization/Rocket.Chat,ggazzo/Rocket.Chat,Achaikos/Rocket.Chat,AimenJoe/Rocket.Chat,LearnersGuild/echo-chat,Sing-Li/Rocket.Chat,flaviogrossi/Rocket.Chat,wtsarchive/Rocket.Chat,LearnersGuild/Rocket.Chat,danielbressan/Rocket.Chat,4thParty/Rocket.Chat,Gudii/Rocket.Chat,karlprieb/Rocket.Chat,AlecTroemel/Rocket.Chat,abduljanjua/TheHub,igorstajic/Rocket.Chat,AlecTroemel/Rocket.Chat,Achaikos/Rocket.Chat,alexbrazier/Rocket.Chat,trt15-ssci-organization/Rocket.Chat,k0nsl/Rocket.Chat