summaryrefslogtreecommitdiff
path: root/alot/widgets/thread.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/widgets/thread.py')
-rw-r--r--alot/widgets/thread.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/alot/widgets/thread.py b/alot/widgets/thread.py
index d87a881a..47034bfe 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].get_message_id()
+ self.root = thread.get_toplevel_messages()[0].id
self._parent_of = {}
self._first_child_of = {}
self._last_child_of = {}
@@ -342,13 +342,13 @@ class ThreadTree(Tree):
def accumulate(msg, odd=True):
"""recursively read msg and its replies"""
- mid = msg.get_message_id()
+ mid = msg.id
self._message[mid] = MessageTree(msg, odd)
odd = not odd
last = None
self._first_child_of[mid] = None
for reply in thread.get_replies_to(msg):
- rid = reply.get_message_id()
+ rid = reply.id
if self._first_child_of[mid] is None:
self._first_child_of[mid] = rid
self._parent_of[rid] = mid
@@ -361,7 +361,7 @@ class ThreadTree(Tree):
last = None
for msg in thread.get_toplevel_messages():
- mid = msg.get_message_id()
+ mid = msg.id
self._prev_sibling_of[mid] = last
self._next_sibling_of[last] = mid
accumulate(msg)
@@ -389,4 +389,4 @@ class ThreadTree(Tree):
@staticmethod
def position_of_messagetree(mt):
- return mt._message.get_message_id()
+ return mt._message.id