Git Product home page Git Product logo

Comments (5)

ddoron avatar ddoron commented on May 22, 2024 5

For anyone who needs a stopgap solution on OS X (aka macOS), this worked for me, but I'm no developer, though I doubt I'm doing any "harm":

  • close the Rocket Chat app.
  • delete the directory "chat.rocket" that in the following path:
    ~/Library/Containers/chat.rocket/
  • open the Rocket Chat app.

from rocket.chat.electron.

popiolek avatar popiolek commented on May 22, 2024

As quick fix before some real fix, I've created simple batch script that deletes cookies and local storage files before starting app. Maybe someone will find it helpful:

@echo off

:: Set Rocket.Chat path here (path to exe file)
set chat="%ProgramFiles(x86)%\Rocket.Chat\Rocket.Chat.exe"
:: Files to delete
:: GitLab login is stored in cookies
set file[0]=%USERPROFILE%\AppData\Roaming\Rocket.Chat\Cookies
set file[1]=%USERPROFILE%\AppData\Roaming\Rocket.Chat\Cookies-journal
:: Rocket.Chat login is stored in local storage
set file[2]=%USERPROFILE%\AppData\Roaming\Rocket.Chat\Local Storage\https_yourdomain.com_0.localstorage
set file[3]=%USERPROFILE%\AppData\Roaming\Rocket.Chat\Local Storage\https_yourdomain.com_0.localstorage-journal

:: For each file
for /F "tokens=2 delims==" %%s in ('set file[') do (
    :: If sosmething already was marked then delete
    if exist "%%s.toDelete" del "%%s.toDelete"
    :: Check if file is locked if not mark to delete
    if exist "%%s" move "%%s" "%%s.toDelete" || goto onerror
    :: Delete marked file
    if exist "%%s.toDelete" del "%%s.toDelete"
)

:: Run Rocket.Chat app and finish script
start "" %chat%
exit

:onerror
:: Show error message (should work for most systems)
mshta javascript:alert("Files are locked.\n\nCheck if there is no Rocket.Chat running in the backgroud.");close();

You need to provide your domain in there https_yourdomain.com_0.localstorage, and any path if it differ. Sorry for code quality but I don't have any experience with Batch scripting (and time;).

from rocket.chat.electron.

popiolek avatar popiolek commented on May 22, 2024

UPDATE: remote part of my office told me, that this script breaks the ability to start a voice chat. I don't know how it's possible as all files are recreated on app start, but be aware of that if you use that script. Gave as a real headache to debug that.

@engelgabriel Could you tell me how deleting those 4 files may affect voice calls? I'd like to fix my script so that we could keep using it before you come up with an update but I don't really know what may the cause be and therefore how to change it.

from rocket.chat.electron.

JafryD2 avatar JafryD2 commented on May 22, 2024

that script effects all notifications(in app), not just voicechat btw. We haven't tested it with the browser version.

from rocket.chat.electron.

bhathiya avatar bhathiya commented on May 22, 2024

For the record: In Ubuntu, deleting below directories cleared the cache.
/home/<user>/.config/Rocket.Chat+/Cache
/home/<user>/.config/Rocket.Chat+/GPUCache
/home/<user>/.cache/Rocket.Chat+

from rocket.chat.electron.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.