Closed laggykiller closed 1 year ago
See https://github.com/signalapp/Signal-Desktop/blob/main/ts/windows/main/start.ts
if (!isProduction(window.SignalContext.getVersion())) {
const SignalDebug = {
Data: window.Signal.Data,
getConversation: (id: string) => window.ConversationController.get(id),
getMessageById: (id: string) => window.MessageController.getById(id),
getReduxState: () => window.reduxStore.getState(),
getSfuUrl: () => window.Signal.Services.calling._sfuUrl,
getStorageItem: (name: keyof StorageAccessType) => window.storage.get(name),
putStorageItem: <K extends keyof StorageAccessType>(
name: K,
value: StorageAccessType[K]
) => window.storage.put(name, value),
setFlag: (name: keyof FeatureFlagType, value: boolean) => {
if (!has(window.Flags, name)) {
return;
}
window.Flags[name] = value;
},
setSfuUrl: (url: string) => {
window.Signal.Services.calling._sfuUrl = url;
},
};
Hence, the alternative method is to download Signal Beta version (https://support.signal.org/hc/en-us/articles/360007318471-Signal-Beta) and use:
window.SignalDebug.getReduxState().items.uuid_id
window.SignalDebug.getReduxState().items.password
Note: For beta version, no need to launch with --enable-dev-tools
However, would there be any way to get uuid_id and password from production version?
With my limited javascript knowledge, I think it is related to these commits:
reduxStore
) [https://www.electronjs.org/docs/latest/tutorial/context-isolation]SignalDebug
with ContextBridge
, making above possible)I have created a PR with updated instruction: https://github.com/signalstickers/signalstickers-client/pull/16
@sweetgiorni Have you read what I wrote?
To quote what I have wrote:
The alternative method is to download Signal Beta version (https://support.signal.org/hc/en-us/articles/360007318471-Signal-Beta) and use:
window.SignalDebug.getReduxState().items.uuid_id
window.SignalDebug.getReduxState().items.password
Edit: I see what you mean now, your solution is better
Hi, thanks for the library!
Does anybody know how long these credentials are valid and can be used without refreshing?
Thanks
Thanks a lot @sweetgiorni ! I've added your video to the README and clarified the instructions.
@lorisleitner Does anybody know how long these credentials are valid and can be used without refreshing?
No idea, sorry.
Followed the guide: https://github.com/signalstickers/signalstickers-client#uploading-a-pack
Broken recently after update