gdm: Actually wait for pending messages being notified on failures

We had code to ensure that all the queued messages sent by a PAM module
were shown by waiting some time to give the user time to read them, but
due to a typo this code never executed.

Fixes commit dd97a2589b8b686f273550f3e9e6ce370b25c10d

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3466>
This commit is contained in:
Marco Trevisan (Treviño) 2024-09-11 00:22:57 +02:00 committed by Marge Bot
parent 8bbe7514c9
commit c67ea8e771

View File

@ -862,7 +862,7 @@ export class ShellUserVerifier extends Signals.EventEmitter {
} }
_handlePendingMessages() { _handlePendingMessages() {
if (!this.hasPendingMessage) if (!this.hasPendingMessages)
return Promise.resolve(); return Promise.resolve();
const cancellable = this._cancellable; const cancellable = this._cancellable;