Reducing the frequency of display for the warning "Draft is being edited in another window."

I’ve been getting it in a completely different context, and wrong.

Always on mobile, I’ve reproduced it with both Brave and Duckduckgo on Android, and had a user tell me they’ve seen it with Android Chrome. It’s not 100% reproducible, but probably 50 to 80%.

  1. Start a reply.
  2. Switch to a different app (typically Firefox Focus, but not always) select some text to copy from there.
  3. Return to the Discourse app.
  4. Bam. “Draft is being edited…”

There is no other window. Hitting page reload fixes it. Ignoring it can result in double posts (both apparently complete). I’ve been seeing it for a while. Yesterday I had a double post, because the “Draft” message came up only as I was finishing. Running 2.6.0.beta1 Discourse.

I know you only support Chrome on Android, and I avoid that browser for more privacy enforcing ones. But DDG and Brave are, I believe, basically wrapped Chrome. I never had this issue when I was using Firefox on Android for Discourse, but there were plenty of other issues, mostly cosmetic.

2 个赞

Do you have any thoughts on the above, @sam?

2 个赞

Honestly… not too many, will give it a shot on my ancient android, hopefully it can make this happen.

3 个赞

最近,我们的论坛上无缘无故地出现了这条消息,还有其他人遇到过这种情况吗?

@tempogain

我也看到了。这只是一个最近才出现的问题

4 个赞

我们刚刚从 2.8.0beta7 升级到 2.8.0beta11,并且自那以后已经收到了几份关于此问题的报告。

2 个赞

我将论坛用作 wiki 知识库。我通常每月编辑主题几次(我是社区中唯一编辑的人)。
起初,网站以标准配置运行,一切正常。此消息并非无缘无故出现。
然后,我将网站连接到外部代理 Nginx,以便流量受到 HTTPS 保护。从那时起,我每天至少会看到一次此消息,提示草稿正在另一个窗口中编辑。但实际上并没有其他窗口,也没有其他用户正在编辑该主题。
我认为连接到 HTTPS 代理导致了这些消息。不幸的是,我无法展示所有外部 Nginx 设置,因为内部规则禁止这样做。
也许这些信息可以帮助管理员或开发人员将目光从 Discourse 移开,转向环境的网络设置。

我也遇到了这个错误,根据多位用户的反馈,我正在运行 2.9.0.beta5。

即使在其他地方没有编辑这些帖子时,我们仍然会看到“此草稿正在另一个窗口中编辑”的警告。许多用户表示这种情况发生在移动设备上,但对我个人而言,这种情况主要发生在桌面设备上(我很少通过移动设备发帖)。我一直认为这是因为我在 iPad 和 iPhone 上都打开了论坛的标签页(尽管当我用 Mac 输入回复时,这些设备总是处于锁屏状态)。

FYI,我们有一些计划来改善这种情况,特别是在跨设备和跨标签页编辑方面。@pmusaraj 最近在这个领域进行了一些规范工作。

我昨天确实看到了其中一个……我认为重现步骤可能是:

  1. 编辑帖子
  2. 离线
  3. 继续编辑帖子
  4. 上线
  5. 编辑帖子
  6. 显示了错误的警告
4 个赞

你的意思是主要原因在于软件本身无法干净地恢复,还是在于不可靠的互联网/WiFi/其他连接?

我最近经常遇到这个问题,但没有第 2 步和第 4 步。
即使我刚重启电脑并且只打开了一个标签页,也会显示警告。

2 个赞

我也是,我不会离线和在线,只是打开一个新标签页:

  1. 创建/编辑帖子
  2. 打开一个新标签页(即使在不是回复的帖子中,也会自动再次打开编辑器)
  3. 收到警告

当你忘记某事需要重新阅读帖子时,这会很烦人。

2 个赞

我遇到了这个问题。至少有18个月,甚至可能2年了。

我的信息:

  • 只在一个论坛上发生
  • 主要发生在 DiscourseHub 应用中
  • 在 macOS 桌面版 Safari 中也会发生
  • 我从不打开同一个页面的多个标签页,更不用说在多个标签页中编辑同一个帖子了(事实上,在 DiscourseHub 应用中这是不可能的)
  • 在收到警告消息之前,我在编辑器下方右下角看到一个警告三角形
  • 我在18个月前首次向相关论坛的管理员报告了这个问题

最近在相关论坛也报告了这个问题:"Draft is being edited in another window" - #6 by matt - Playdate Developer Forum

我相信该论坛是我定期使用的所有 Discourse 论坛中唯一一个自托管的论坛。