mirror of
https://github.com/thelounge/thelounge
synced 2025-02-16 21:28:23 +00:00
don't call search on a disabled msg provider
A provider might be available, but not functional (broken migration invalid configuration or what have you). Don't try to call search in this case.
This commit is contained in:
parent
cebc6d069f
commit
bea4545abf
1 changed files with 1 additions and 1 deletions
|
@ -619,7 +619,7 @@ class Client {
|
|||
}
|
||||
|
||||
search(query: SearchQuery) {
|
||||
if (this.messageProvider === undefined) {
|
||||
if (!this.messageProvider?.isEnabled) {
|
||||
return Promise.resolve({
|
||||
results: [],
|
||||
target: "",
|
||||
|
|
Loading…
Add table
Reference in a new issue