diff options
Diffstat (limited to 'alot/widgets/thread.py')
-rw-r--r-- | alot/widgets/thread.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alot/widgets/thread.py b/alot/widgets/thread.py index 47034bfe..97a34417 100644 --- a/alot/widgets/thread.py +++ b/alot/widgets/thread.py @@ -332,7 +332,7 @@ class ThreadTree(Tree): """ def __init__(self, thread): self._thread = thread - self.root = thread.get_toplevel_messages()[0].id + self.root = thread.toplevel_messages[0].id self._parent_of = {} self._first_child_of = {} self._last_child_of = {} @@ -347,7 +347,7 @@ class ThreadTree(Tree): odd = not odd last = None self._first_child_of[mid] = None - for reply in thread.get_replies_to(msg): + for reply in msg.replies: rid = reply.id if self._first_child_of[mid] is None: self._first_child_of[mid] = rid @@ -360,7 +360,7 @@ class ThreadTree(Tree): return odd last = None - for msg in thread.get_toplevel_messages(): + for msg in thread.toplevel_messages: mid = msg.id self._prev_sibling_of[mid] = last self._next_sibling_of[last] = mid |