chiark / gitweb /
Fix a crash on receiving a mention.
authorSimon Tatham <anakin@pobox.com>
Wed, 6 Dec 2023 12:28:43 +0000 (12:28 +0000)
committerSimon Tatham <anakin@pobox.com>
Wed, 6 Dec 2023 12:28:43 +0000 (12:28 +0000)
self.mentions_feed is a function; mentions_feed is the value it returned.

cursesclient.py

index e057d4254ee92834e68e6ef963be374ce2413162..20663be22d0e2570e853c40492a900417c680be7 100644 (file)
@@ -153,7 +153,7 @@ class CursesUI(client.Client):
                 # topmost activity is uninterruptible, e.g. an editor
                 if not any(a is self.mentions_feed
                            for a in self.activity_stack):
-                    self.activity_stack.append(self.mentions_feed)
+                    self.activity_stack.append(mentions_feed)
 
         self.add_streaming_selfpipe("streaming/user", extend_both)