summaryrefslogtreecommitdiff
path: root/alot/buffers
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-02-06 11:26:08 +0100
committerAnton Khirnov <anton@khirnov.net>2020-02-06 11:31:27 +0100
commit0a5a9bd056cc6946ed6c75a43dd7a77c404de3d1 (patch)
treed437d77600f43cb0e7fb6a2116577b4767a14a3d /alot/buffers
parentf6a67c33c360b10cd1c7d876c741846028e35f47 (diff)
db/thread: drop useless getter functions
Diffstat (limited to 'alot/buffers')
-rw-r--r--alot/buffers/thread.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/buffers/thread.py b/alot/buffers/thread.py
index 16b9dae9..41766852 100644
--- a/alot/buffers/thread.py
+++ b/alot/buffers/thread.py
@@ -27,7 +27,7 @@ class ThreadBuffer(Buffer):
:type thread: :class:`~alot.db.Thread`
"""
self.thread = thread
- self.message_count = thread.get_total_messages()
+ self.message_count = thread.total_messages
self._indent_width = settings.get('thread_indent_replies')
self.rebuild()
@@ -90,7 +90,7 @@ class ThreadBuffer(Buffer):
self._nested_tree = NestedTree(A, interpret_covered=True)
self.body = TreeBox(self._nested_tree)
- self.message_count = self.thread.get_total_messages()
+ self.message_count = self.thread.total_messages
def get_selected_mid(self):
"""Return Message ID of focussed message."""