Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
poezio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
205
Issues
205
List
Boards
Labels
Service Desk
Milestones
Merge Requests
10
Merge Requests
10
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poezio
poezio
Commits
b01c7965
Commit
b01c7965
authored
Aug 21, 2019
by
Madhur Garg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected indentation and coding style.
parent
e3c1ac40
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
10 deletions
+8
-10
poezio/core/core.py
poezio/core/core.py
+1
-2
poezio/mam.py
poezio/mam.py
+2
-3
poezio/text_buffer.py
poezio/text_buffer.py
+5
-5
No files found.
poezio/core/core.py
View file @
b01c7965
...
...
@@ -1996,9 +1996,8 @@ class Core:
tab
=
self
.
tabs
.
by_name_and_class
(
bm
.
jid
,
tabs
.
MucTab
)
nick
=
bm
.
nick
if
bm
.
nick
else
self
.
own_nick
if
not
tab
:
self
.
open_new_room
(
tab
=
self
.
open_new_room
(
bm
.
jid
,
nick
,
focus
=
False
,
password
=
bm
.
password
)
tab
=
self
.
tabs
.
by_name_and_class
(
bm
.
jid
,
tabs
.
MucTab
)
self
.
initial_joins
.
append
(
bm
.
jid
)
# do not join rooms that do not have autojoin
# but display them anyway
...
...
poezio/mam.py
View file @
b01c7965
...
...
@@ -153,14 +153,13 @@ def mam_scroll(tab):
end
=
end
.
replace
(
tzinfo
=
tzone
).
astimezone
(
tz
=
timezone
.
utc
)
end
=
end
.
replace
(
tzinfo
=
None
)
end
=
datetime
.
strftime
(
end
,
'%Y-%m-%dT%H:%M:%SZ'
)
top
=
True
pos
=
tab
.
text_win
.
pos
tab
.
text_win
.
pos
+=
tab
.
text_win
.
height
-
1
if
tab
.
text_win
.
pos
+
tab
.
text_win
.
height
>
len
(
tab
.
text_win
.
built_lines
):
if
before
is
None
:
asyncio
.
ensure_future
(
query
(
tab
,
remote_jid
,
top
,
end
=
end
))
asyncio
.
ensure_future
(
query
(
tab
,
remote_jid
,
top
=
True
,
end
=
end
))
else
:
asyncio
.
ensure_future
(
query
(
tab
,
remote_jid
,
top
,
before
=
before
))
asyncio
.
ensure_future
(
query
(
tab
,
remote_jid
,
top
=
True
,
before
=
before
))
tab
.
query_id
=
1
tab
.
text_win
.
pos
=
len
(
tab
.
text_win
.
built_lines
)
-
tab
.
text_win
.
height
if
tab
.
text_win
.
pos
<
0
:
...
...
poezio/text_buffer.py
View file @
b01c7965
...
...
@@ -169,12 +169,12 @@ class TextBuffer:
nick_size
=
config
.
get
(
'max_nick_length'
)
for
window
in
self
.
_windows
:
# make the associated windows
# build the lines from the new message
if
top
==
True
:
if
top
:
nb
=
window
.
build_message_at_the_top
(
msg
,
history
=
history
,
timestamp
=
show_timestamps
,
nick_size
=
nick_size
)
msg
,
history
=
history
,
timestamp
=
show_timestamps
,
nick_size
=
nick_size
)
if
ret_val
==
0
:
ret_val
=
nb
if
window
.
pos
!=
0
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment