Yann Leboulanger pushed to branch master at gajim / gajim
Commits:
a47bb9f0 by Yann Leboulanger at 2017-08-17T21:40:00+02:00
fix error when someone changes nick ina room
- - - - -
1 changed file:
- gajim/groupchat_control.py
Changes:
=====================================
gajim/groupchat_control.py
=====================================
--- a/gajim/groupchat_control.py
+++ b/gajim/groupchat_control.py
@@ -1722,10 +1722,10 @@ class GroupchatControl(ChatControlBase):
s = _('%(nick)s is now known as %(new_nick)s') % {
'nick': nick, 'new_nick': obj.new_nick}
tv = self.conv_textview
- if obj.nick in tv.last_received_message_marks:
- tv.last_received_message_marks[obj.new_nick] = \
- tv.last_received_message_marks[obj.nick]
- del tv.last_received_message_marks[obj.nick]
+ if obj.nick in tv.last_received_message_id:
+ tv.last_received_message_id[obj.new_nick] = \
+ tv.last_received_message_id[obj.nick]
+ del tv.last_received_message_id[obj.nick]
if obj.nick in self.last_received_txt:
self.last_received_txt[obj.new_nick] = \
self.last_received_txt[obj.nick]
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/a47bb9f03c224cb8ea038ba58c75f9f066…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/a47bb9f03c224cb8ea038ba58c75f9f066…
You're receiving this email because of your account on dev.gajim.org.
Yann Leboulanger pushed to branch master at gajim / gajim
Commits:
99b27b44 by Yann Leboulanger at 2017-08-16T22:03:17+02:00
correctly compute file hash when file is received
- - - - -
1 changed file:
- gajim/gui_interface.py
Changes:
=====================================
gajim/gui_interface.py
=====================================
--- a/gajim/gui_interface.py
+++ b/gajim/gui_interface.py
@@ -996,7 +996,8 @@ class Interface:
file_props=file_props))
else:
ft.set_status(file_props, 'stop')
- if file_props.stalled or file_props.paused:
+ if not file_props.completed and (file_props.stalled or \
+ file_props.paused):
return
if file_props.type_ == 'r': # we receive a file
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/99b27b448474f91f42687a8302feb261ed…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/99b27b448474f91f42687a8302feb261ed…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
4f4a58e5 by Philipp Hörist at 2017-08-15T19:45:42+02:00
XMLConsole: Fix size allocate warning
It seems to be important to let all widgets realize and then
hide the ones we dont want to show, instead of not showing them
in the first place.
- - - - -
1 changed file:
- gajim/dialogs.py
Changes:
=====================================
gajim/dialogs.py
=====================================
--- a/gajim/dialogs.py
+++ b/gajim/dialogs.py
@@ -3389,7 +3389,6 @@ class XMLConsoleWindow(Gtk.Window):
self.scrolled_input = Gtk.ScrolledWindow()
self.scrolled_input.set_size_request(-1, 150)
self.scrolled_input.add(self.input)
- self.scrolled_input.set_no_show_all(True)
self.paned = Gtk.VPaned()
self.paned.set_vexpand(True)
@@ -3456,6 +3455,8 @@ class XMLConsoleWindow(Gtk.Window):
self.create_tags()
self.show_all()
+ self.scrolled_input.hide()
+
gajim.ged.register_event_handler('stanza-received', ged.GUI1,
self._nec_stanza_received)
gajim.ged.register_event_handler('stanza-sent', ged.GUI1,
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/4f4a58e51a53ce7986d527af146649ec80…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/4f4a58e51a53ce7986d527af146649ec80…
You're receiving this email because of your account on dev.gajim.org.
Yann Leboulanger pushed to branch master at gajim / gajim
Commits:
d9948452 by Yann Leboulanger at 2017-08-14T18:36:40+02:00
Revert "use netifaces to get local IPs if available. Fixes #8666"
This reverts commit b9c363e9cdf578b8421d2e2a4a12dee8701ff271.
- - - - -
9ce6299e by Yann Leboulanger at 2017-08-14T18:37:11+02:00
use netifaces to get local IPs if available. Fixes #8666
- - - - -
3 changed files:
- README
- gajim/common/jingle_transport.py
- gajim/common/socks5.py
Changes:
=====================================
README
=====================================
--- a/README
+++ b/README
@@ -38,7 +38,6 @@
<li>gir1.2-gupnpigd-1.0 for better NAT traversing</li>
<li>gir1.2-networkmanager-1.0 for network lose detection</li>
<li>python3-idna and python3-precis-i18n for correctly parsing JIDs</li>
-<li>python3-netifaces to get local IPs to send files</li>
</ul>
<p>Some distributions also split too much python standard library. I know SUSE does. In such distros you also need python-xml the xml lib that *comes* with python and not pyxml or whatever.</p>
=====================================
gajim/common/jingle_transport.py
=====================================
--- a/gajim/common/jingle_transport.py
+++ b/gajim/common/jingle_transport.py
@@ -181,7 +181,7 @@ class JingleTransportSocks5(JingleTransport):
def _add_local_ips_as_candidates(self):
if not gajim.config.get_per('accounts', self.connection.name,
- 'ft_send_local_ips'):
+ 'ft_send_local_ips'):
return
if not self.connection:
return
@@ -224,6 +224,49 @@ class JingleTransportSocks5(JingleTransport):
except socket.gaierror:
pass # ignore address-related errors for getaddrinfo
+ try:
+ from netifaces import interfaces, ifaddresses, AF_INET, AF_INET6
+ for ifaceName in interfaces():
+ addresses = ifaddresses(ifaceName)
+ if AF_INET in addresses:
+ for address in addresses[AF_INET]:
+ addr = address['addr']
+ if addr in hosts or addr.startswith('127.'):
+ continue
+ candidate = {
+ 'host': addr,
+ 'candidate_id': self.connection.connection.getAnID(),
+ 'port': port,
+ 'type': 'direct',
+ 'jid': self.ourjid,
+ 'priority': priority,
+ 'initiator': self.file_props.sender,
+ 'target': self.file_props.receiver
+ }
+ hosts.add(addr)
+ local_ip_cand.append(candidate)
+ if AF_INET6 in addresses:
+ for address in addresses[AF_INET6]:
+ addr = address['addr']
+ if addr in hosts or addr.startswith('::1') or \
+ addr.count(':') != 7:
+ continue
+ candidate = {
+ 'host': addr,
+ 'candidate_id': self.connection.connection.getAnID(),
+ 'port': port,
+ 'type': 'direct',
+ 'jid': self.ourjid,
+ 'priority': priority,
+ 'initiator': self.file_props.sender,
+ 'target': self.file_props.receiver
+ }
+ hosts.add(addr)
+ local_ip_cand.append(candidate)
+
+ except ImportError:
+ pass
+
self._add_candidates(local_ip_cand)
def _add_additional_candidates(self):
=====================================
gajim/common/socks5.py
=====================================
--- a/gajim/common/socks5.py
+++ b/gajim/common/socks5.py
@@ -205,8 +205,6 @@ class SocksQueue:
connection failure cb. If there are some which are still not connected
try to establish connection to one of them
"""
- print(client)
- print(streamhost)
self.idlequeue.remove_timeout(client.fd)
self.idlequeue.unplug_idle(client.fd)
file_props = client.file_props
@@ -225,7 +223,7 @@ class SocksQueue:
host['state'] = 0
# FIXME: make the sender reconnect also
client = Socks5ReceiverClient(self.idlequeue, host,
- client.sid, file_props)
+ host['sid'], file_props)
self.add_sockobj(client.account, client)
host['idx'] = client.queue_idx
# we still have chances to connect
@@ -1033,7 +1031,6 @@ class Socks5Receiver(IdleObject):
self.connect_timeout = 0
self.connected = False
self.pauses = 0
- self.sid = sid
self.file_props = file_props
self.file_props.disconnect_cb = self.disconnect
self.file_props.error = 0
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/b9c363e9cdf578b8421d2e2a4a12dee87…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/b9c363e9cdf578b8421d2e2a4a12dee87…
You're receiving this email because of your account on dev.gajim.org.
Yann Leboulanger pushed to branch master at gajim / gajim
Commits:
b9c363e9 by Yann Leboulanger at 2017-08-14T16:43:44+02:00
use netifaces to get local IPs if available. Fixes #8666
- - - - -
2 changed files:
- README
- gajim/common/socks5.py
Changes:
=====================================
README
=====================================
--- a/README
+++ b/README
@@ -38,6 +38,7 @@
<li>gir1.2-gupnpigd-1.0 for better NAT traversing</li>
<li>gir1.2-networkmanager-1.0 for network lose detection</li>
<li>python3-idna and python3-precis-i18n for correctly parsing JIDs</li>
+<li>python3-netifaces to get local IPs to send files</li>
</ul>
<p>Some distributions also split too much python standard library. I know SUSE does. In such distros you also need python-xml the xml lib that *comes* with python and not pyxml or whatever.</p>
=====================================
gajim/common/socks5.py
=====================================
--- a/gajim/common/socks5.py
+++ b/gajim/common/socks5.py
@@ -205,6 +205,8 @@ class SocksQueue:
connection failure cb. If there are some which are still not connected
try to establish connection to one of them
"""
+ print(client)
+ print(streamhost)
self.idlequeue.remove_timeout(client.fd)
self.idlequeue.unplug_idle(client.fd)
file_props = client.file_props
@@ -223,7 +225,7 @@ class SocksQueue:
host['state'] = 0
# FIXME: make the sender reconnect also
client = Socks5ReceiverClient(self.idlequeue, host,
- host['sid'], file_props)
+ client.sid, file_props)
self.add_sockobj(client.account, client)
host['idx'] = client.queue_idx
# we still have chances to connect
@@ -1031,6 +1033,7 @@ class Socks5Receiver(IdleObject):
self.connect_timeout = 0
self.connected = False
self.pauses = 0
+ self.sid = sid
self.file_props = file_props
self.file_props.disconnect_cb = self.disconnect
self.file_props.error = 0
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/b9c363e9cdf578b8421d2e2a4a12dee870…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/b9c363e9cdf578b8421d2e2a4a12dee870…
You're receiving this email because of your account on dev.gajim.org.