Skip to content

Commit c5abb44

Browse files
authored
Merge pull request #78 from humhub/not-show-opener-on-mobile-logout
Fix: Don t show opener if logout triggered by mobile app
2 parents c11f70e + 20c586f commit c5abb44

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Events.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ public static function onAfterLogout()
149149
{
150150
Yii::$app->session->set(WebAppHelper::SESSION_VAR_UNREGISTER_NOTIFICATION, 1);
151151
Yii::$app->session->set(MobileAppHelper::SESSION_VAR_UNREGISTER_NOTIFICATION, 1);
152-
Yii::$app->session->set(MobileAppHelper::SESSION_VAR_SHOW_OPENER, 1);
152+
if (!DeviceDetectorHelper::isAppRequest()) {
153+
Yii::$app->session->set(MobileAppHelper::SESSION_VAR_SHOW_OPENER, 1);
154+
}
153155
}
154156

155157
public static function onAuthChoiceBeforeRun(Event $event)

docs/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Changelog
44
2.1.9 (Unreleased)
55
----------------------
66
- Fix #75: Warning for "FCM Detection - App is using Proxy Firebase Service"
7+
- Fix #78: Don't show opener if logout triggered by mobile app
78

89
2.1.8 (March 21, 2025)
910
----------------------

0 commit comments

Comments
 (0)