Display the time of the message only once, fixed #1675
This commit is contained in:
parent
2e5d089eda
commit
52b65bc296
1 changed files with 6 additions and 3 deletions
|
@ -202,8 +202,8 @@ class TextWin(Win):
|
||||||
|
|
||||||
def build_lines_from_messages(self, messages):
|
def build_lines_from_messages(self, messages):
|
||||||
"""
|
"""
|
||||||
From the n messages (n behing the height of the text area),
|
From all the existing messages in the window, create the that will
|
||||||
returns the n last lines (Line object).
|
be displayed on the screen
|
||||||
"""
|
"""
|
||||||
lines = []
|
lines = []
|
||||||
for message in messages:
|
for message in messages:
|
||||||
|
@ -236,8 +236,11 @@ class TextWin(Win):
|
||||||
color = message.user.color if message.user else None
|
color = message.user.color if message.user else None
|
||||||
if not first:
|
if not first:
|
||||||
nick = None
|
nick = None
|
||||||
|
time = None
|
||||||
|
else:
|
||||||
|
time = message.time
|
||||||
l = Line(nick, color,
|
l = Line(nick, color,
|
||||||
message.time,
|
time,
|
||||||
txt[:limit], message.color,
|
txt[:limit], message.color,
|
||||||
offset)
|
offset)
|
||||||
lines.append(l)
|
lines.append(l)
|
||||||
|
|
Loading…
Reference in a new issue