summaryrefslogtreecommitdiff
path: root/poezio/mam.py
diff options
context:
space:
mode:
authorMadhur Garg <madhurgarg96@gmail.com>2019-08-21 13:21:02 +0530
committerMadhur Garg <madhurgarg96@gmail.com>2019-08-22 00:54:25 +0530
commit47dc7f0095cc1442c4002e9dab0d85da89aa3c02 (patch)
tree1e6da10da72b01411435920aaf8656b887b65b17 /poezio/mam.py
parentb01c7965519dadb5e0c566db3da340648276744b (diff)
downloadpoezio-47dc7f0095cc1442c4002e9dab0d85da89aa3c02.tar.gz
poezio-47dc7f0095cc1442c4002e9dab0d85da89aa3c02.tar.bz2
poezio-47dc7f0095cc1442c4002e9dab0d85da89aa3c02.tar.xz
poezio-47dc7f0095cc1442c4002e9dab0d85da89aa3c02.zip
Changed stanza_id attribute to last_stanza_id.
Diffstat (limited to 'poezio/mam.py')
-rw-r--r--poezio/mam.py4
1 files changed, 2 insertions, 2 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: