fix: write "Official Navigation Graph" if graph author matches the product.name (#376)

which was broken after the commit a3288cc353
This commit is contained in:
Владислав Сухов 2022-10-10 01:51:00 +06:00 committed by GitHub
commit 3c10cc0e67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -298,7 +298,7 @@ void BotSupport::checkWelcome () {
StringRef graphAuthor = graph.getAuthor (); StringRef graphAuthor = graph.getAuthor ();
StringRef graphModified = graph.getModifiedBy (); StringRef graphModified = graph.getModifiedBy ();
if (!graphAuthor.startsWith (product.folder)) { if (!graphAuthor.startsWith (product.name)) {
authorStr.assignf ("Navigation Graph by: %s", graphAuthor); authorStr.assignf ("Navigation Graph by: %s", graphAuthor);
if (!graphModified.empty ()) { if (!graphModified.empty ()) {