summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--poezio/mam.py4
-rw-r--r--poezio/tabs/basetabs.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/poezio/mam.py b/poezio/mam.py
index d928a735..1a6743a7 100644
--- a/poezio/mam.py
+++ b/poezio/mam.py
@@ -122,7 +122,7 @@ async def query(tab, remote_jid, top, start=None, end=None, before=None):
forwarded = msg['mam_result']['forwarded']
timestamp = forwarded['delay']['stamp']
message = forwarded['stanza']
- tab.stanza_id = msg['mam_result']['id']
+ tab.last_stanza_id = msg['mam_result']['id']
nick = str(message['from'])
add_line(tab, text_buffer, message['body'], timestamp, nick, top)
tab.text_win.scroll_up(len(tab.text_win.built_lines))
@@ -141,7 +141,7 @@ async def query(tab, remote_jid, top, start=None, end=None, before=None):
def mam_scroll(tab):
remote_jid = tab.jid
text_buffer = tab._text_buffer
- before = tab.stanza_id
+ before = tab.last_stanza_id
end = datetime.now()
if isinstance(tab, tabs.MucTab) is False:
for message in text_buffer.messages:
diff --git a/poezio/tabs/basetabs.py b/poezio/tabs/basetabs.py
index f61c3f76..24fff75e 100644
--- a/poezio/tabs/basetabs.py
+++ b/poezio/tabs/basetabs.py
@@ -475,7 +475,7 @@ class ChatTab(Tab):
assert jid.domain
self._jid = jid
self.query_id = 0
- self.stanza_id = None
+ self.last_stanza_id = None
self._name = jid.full # type: Optional[str]
self.text_win = None