-
Notifications
You must be signed in to change notification settings - Fork 292
Debugging
You can enable debug logs on https://app.wire.com/ do the following:
- Enter
window.localStorage.debug="@wireapp/*"
in JS Console - Refresh Browser window
Get the latest 5 messages for the current conversation from the database:
wire.app.repository.storage.storageService.db['events'].toArray(records => {
const messages = records.filter(events => events.conversation === wire.app.repository.conversation.active_conversation().id);
console.log(messages.slice(-5).reverse());
});
Note: Latest message is at array index 0
.
Since link previews cannot be generated directly in the webapp (due to CORS constraints), we have a way to generate fake link previews when a message with a link is send.
To enable this behavior, in the console, run
wire.app.util.debug.enableLinkPreviews()
The next message you are going to send (that contains a URL), will generate a fake link preview.
- https://developer.mozilla.org/de/docs/Tools/Storage_Inspector
- chrome://indexeddb-internals/
- https://developers.google.com/web/ilt/pwa/working-with-indexeddb#what_is_indexeddb
- IndexedDB is just an API: LevelDB is used as the backend database for Google Chrome's IndexedDB.
wire.app.service.web_socket.socket.readyState
- 0 — connection not yet established
- 1 — conncetion established
- 2 — in closing handshake
- 3 — connection closed or could not open
On Windows, remove everything from here:
%USERPROFILE%\AppData\Local\Google\Chrome\User Data\Default\IndexedDB
On Linux, the folder is located at:
/home/[USERNAME]/.config/google-chrome/Default/IndexedDB/
On Mac, do the following:
- In Chrome, go to "Settings" (or "Preferences" under the Chrome menu)
- Click "show advanced settings" (at the bottom of the page)
- Go to "Privacy" > "Content Settings" > "All cookies and Site Data" > find the domain where you created the IndexedDB
- Hit either the "X" or click "Indexed Database" > Remove
- "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --user-data-dir="c:/chromedev"
Delete cookie "app_opened" from your Browser's Cookies: