Skip to content

Commit

Permalink
Merge pull request #879 from stokito/search
Browse files Browse the repository at this point in the history
SPARK-2343 Show error "Contact search service is not available"
  • Loading branch information
Plyha authored Aug 31, 2024
2 parents 06cafbd + 9c46ea6 commit 534f8f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void finished() {

private void processQuery(String query) {
UIManager.put("OptionPane.okButtonText", Res.getString("ok"));
if (searchServices == null) {
if (searchServices == null || searchServices.isEmpty()) {
JOptionPane.showMessageDialog(SparkManager.getMainWindow(), Res.getString("message.search.service.not.available"), Res.getString("title.error"), JOptionPane.ERROR_MESSAGE);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/resources/i18n/spark_i18n.properties
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ message.save.profile = To save changes to your profile, click save
message.search.for.contacts = Search for contacts
message.search.input.short = Please provide at least two letters.
message.search.for.other.people = Search for other people on the server
message.search.service.not.available = Unable to contact search service
message.search.service.not.available = Contact search service is not available
message.searching.please.wait = Searching, please wait...
message.select.add.room.to.add = Please select a room to add to your service list
message.select.one.or.more = Select one or more users in your roster
Expand Down

0 comments on commit 534f8f5

Please sign in to comment.