Compare commits

...

3 Commits
main ... 5.9.x

Author SHA1 Message Date
Josh Perez
8abc46995e v5.9.0
Some checks failed
Benchmark / linux (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / macos (push) Has been cancelled
CI / linux (push) Has been cancelled
CI / windows (push) Has been cancelled
2021-07-14 18:22:39 -04:00
automated-signal
6922b700e4
Shorten the submenu hover delay
Co-authored-by: Josh Perez <60019601+josh-signal@users.noreply.github.com>
2021-07-13 18:10:36 -07:00
automated-signal
40ae23704e
Fix "delete and restart" after database error
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
2021-07-09 17:58:02 -07:00
5 changed files with 20 additions and 4 deletions

View File

@ -1318,7 +1318,7 @@ app.on('ready', async () => {
`Database startup error:\n\n${redactAll(sqlError.stack)}`
);
} else {
await sql.sqlCall('removeDB', []);
await sql.removeDB();
removeUserConfig();
app.relaunch();
}

View File

@ -4,7 +4,7 @@
"description": "Private messaging from your desktop",
"desktopName": "signal.desktop",
"repository": "https://github.com/signalapp/Signal-Desktop.git",
"version": "5.9.0-beta.1",
"version": "5.9.0",
"license": "AGPL-3.0-only",
"author": {
"name": "Open Whisper Systems",

View File

@ -489,9 +489,11 @@ export class ConversationHeader extends React.Component<PropsType, StateType> {
return (
<ContextMenu id={triggerId}>
{disableTimerChanges ? null : (
<SubMenu title={disappearingTitle}>{expireDurations}</SubMenu>
<SubMenu hoverDelay={1} title={disappearingTitle}>
{expireDurations}
</SubMenu>
)}
<SubMenu title={muteTitle}>
<SubMenu hoverDelay={1} title={muteTitle}>
{muteOptions.map(item => (
<MenuItem
key={item.name}

View File

@ -22,6 +22,9 @@ export type WorkerRequest =
| {
readonly type: 'close';
}
| {
readonly type: 'removeDB';
}
| {
readonly type: 'sqlCall';
readonly method: string;
@ -117,6 +120,10 @@ export class MainSQL {
await this.onExit;
}
public async removeDB(): Promise<void> {
await this.send({ type: 'removeDB' });
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
public async sqlCall(method: string, args: ReadonlyArray<any>): Promise<any> {
if (this.onReady) {

View File

@ -39,6 +39,13 @@ port.on('message', async ({ seq, request }: WrappedWorkerRequest) => {
return;
}
if (request.type === 'removeDB') {
await db.removeDB();
respond(seq, undefined, undefined);
return;
}
if (request.type === 'sqlCall') {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const method = (db as any)[request.method];