Skip to content

Commit

Permalink
Merge branch 'upstream' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
xmdnx committed Mar 9, 2024
2 parents c2098fb + 14ed839 commit b81871d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Telegram/SourceFiles/data/business/data_business_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,9 @@ WorkingIntervals ExtractDayIntervals(
}

bool IsFullOpen(const WorkingIntervals &extractedDay) {
return extractedDay
&& (extractedDay.list.front() == WorkingInterval{ 0, kDay });
return extractedDay // 00:00-23:59 or 00:00-00:00 (next day)
&& (extractedDay.list.front() == WorkingInterval{ 0, kDay - 60 }
|| extractedDay.list.front() == WorkingInterval{ 0, kDay });
}

WorkingIntervals RemoveDayIntervals(
Expand Down
2 changes: 1 addition & 1 deletion Telegram/SourceFiles/data/business/data_business_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ struct WorkingHours {
}

explicit operator bool() const {
return !timezoneId.isEmpty();
return !timezoneId.isEmpty() && !intervals.list.empty();
}

friend inline bool operator==(
Expand Down
2 changes: 1 addition & 1 deletion Telegram/build/prepare/prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def removeDir(folder):
def setVar(key, multilineValue):
singlelineValue = ' '.join(multilineValue.replace('\n', '').split());
if win:
return 'SET ' + key + '="' + singlelineValue + '"';
return 'SET "' + key + '=' + singlelineValue + '"';
return key + '="' + singlelineValue + '"';

def filterByPlatform(commands):
Expand Down

0 comments on commit b81871d

Please sign in to comment.