github GeiserX/Telegram-Archive v5.1.0
v5.1.0 - iOS Safari & In-App Browser Fix

latest releases: v7.33.4, v7.33.3, v7.33.2...
6 months ago

🍎 iOS Safari & In-App Browser Compatibility Fix

This release fixes a critical bug that prevented the viewer from working on iOS Safari and in-app browsers (like opening links from Telegram, Twitter, etc.).

πŸ› What Was Broken

When opening the viewer on iOS Safari or any in-app browser, users would see "Authentication is disabled" even when authentication was properly configured. The app appeared broken with no way to log in.

πŸ” Root Cause

The Notification API does not exist in iOS Safari and many in-app browsers. The code used optional chaining (Notification?.permission), but JavaScript throws a ReferenceError when accessing an undeclared variableβ€”even with ?.. This crashed the Vue app before authentication could even be checked.

βœ… The Fix

  • Use typeof Notification !== "undefined" check before accessing the API
  • Fixed auth check returning null instead of false (Python's None and X quirk)
  • Added helpful error message for in-app browser users
  • Added notification blocked detection banner

πŸ“¦ Upgrade

# Pull the new viewer image
docker pull drumsergio/telegram-archive-viewer:v5.1.0

# Update your docker-compose.yml to use v5.1.0
# Then restart
docker compose up -d

πŸ†• New Environment Variable

Variable Default Description
AUTH_SESSION_DAYS 30 How long the login session lasts (in days)

πŸ“‹ Full changelog: docs/CHANGELOG.md

Don't miss a new Telegram-Archive release

NewReleases is sending notifications on new releases.