2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Mark event loop nesting more carefully.

Fixes #5506. I hope fixes #5508.
This commit is contained in:
John Preston
2018-12-23 16:08:48 +04:00
parent 4e692e2c1e
commit de4a477686
5 changed files with 30 additions and 4 deletions

View File

@@ -477,15 +477,19 @@ void RegisterCustomScheme() {
#endif // !TDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME
}
PermissionStatus GetPermissionStatus(PermissionType type){
PermissionStatus GetPermissionStatus(PermissionType type) {
return PermissionStatus::Granted;
}
void RequestPermission(PermissionType type, Fn<void(PermissionStatus)> resultCallback){
void RequestPermission(PermissionType type, Fn<void(PermissionStatus)> resultCallback) {
resultCallback(PermissionStatus::Granted);
}
void OpenSystemSettingsForPermission(PermissionType type){
void OpenSystemSettingsForPermission(PermissionType type) {
}
bool NativeEventNestsLoop(void *message) {
return true;
}
namespace ThirdParty {