summaryrefslogtreecommitdiff
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
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.
-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