Skip to content

[Bug] Messages' context menu stops working on macOS after background + Crash #912

Description

@dev-adamant-im

Reward

💸💰💵
Delegate noisy_pool is sponsoring this task.
Reward: 4000 ADM
Payment: After successful implementation, merging to develop, and testing.

Summary

On macOS, after the app stays in background for some time, the messages’ context menu stops working after restore. Previously this also broke the input field and caused crashes (Build 6), but since Build 18 crashes are gone and text input works. The only issue that remains is the message context menu not opening after background restore.

Steps to reproduce

  1. Use the macOS app for some time.
  2. Minimize/restore it from background (keep app running in Dock, don’t close).
  3. Right-click on a message.
    • Menu does not open.
    • Message gets highlighted instead.
  4. Try typing in the message field:
    • In Build 6: no input possible, keyboard unresponsive.
    • Only full app restart helps.
  5. In Build 18+:
    • Typing and sending messages works.
    • No crash.
    • Bug persists: message context menu doesn’t open (overlay appears, message highlights, but no menu is shown).

Expected behavior

  • After restoring from background, app should behave exactly as after fresh start:
    • Messages can be typed and sent.
    • Right-click context menu on messages opens normally.

Actual behavior

  • After some time in background:
    • Context menu on messages stops working.
    • Previously (Build 6): input field also broke, leading to total freeze.
    • Currently (Build 18+): input field works, but context menu issue persists.

Screenshots or videos

Image

Environment

  • macOS app
  • v3.11.0 Build 6 (initially reported)
  • v3.11.0 (18 and following): partial improvement

Notes

  • Crash observed in Build 6 is no longer reproducible in Build 18.
  • See attached video: right-clicking on a message highlights the message, overlay appears, but menu does not open.
  • Team discussed workaround:
    • Auto-kill app in memory after certain idle/background time.
    • Could be considered a security feature (like auto-logout).
    • Alternative: try reloading interface components dynamically (complex, high effort, uncertain success).

Call for testers

Anyone with macOS Apple Silicon, install Build from TestFlight and let it run in background for several days.

  • Push notifications: optional.
  • Goal: see if the bug reproduces.
  • Steps: keep app in Dock, restore from background daily, check message typing and context menu (right-click).
  • Post results in this thread.

Status

  • Bug confirmed
  • Crash fixed in Build 18
  • Context menu issue persists
  • Testers wanted
  • Help wanted

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bounty 💰Task with a reward for successful completion (paid after PR is merged)MobileIssues specific to iOS or Android appsPerformanceOptimizations for speed, storage, or network usageSwiftiOS-specific code and features in SwiftbugSomething isn't workinghelp wantedExtra attention is needed

    Type

    Fields

    No fields configured for Bug.

    Projects

    Status
    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions