Commit graph

1144 commits

Author SHA1 Message Date
js
11b5ce1d04 Fix restoring of multiline status messages on reconnect. 2008-07-26 01:58:30 +00:00
js
83a317c042 Renegotiate if the remote end got disconnected and now got back online. 2008-07-24 22:14:42 +00:00
js
0d9a73cde9 Always have self.contact of a chat control point to the hightest
resource if none was specified.

As it's still possible to start E2E when the only E2E-capable resource
goes offline, this means that caps is definitely broken.

(Yes, I verified it with a print contact.resource - it IS checked for
the right contact!)
2008-07-23 18:21:02 +00:00
js
6bfdebf347 Fix #4069. 2008-07-23 17:40:02 +00:00
js
65d5d92087 * End ESession when remote signs off.
* Fix typo.
* Better code in conversation_textview.py.

@bct: Your diff didn't work, I had to move it + add an if. Seems to
work now.
2008-07-22 14:32:37 +00:00
js
229006a28e Coding style. 2008-07-22 14:13:37 +00:00
Stephan Erb
1b2e12057c Some cleanups and an attempt to fix the MUC highlight problem. 2008-07-21 21:44:40 +00:00
js
327673cdd7 bct, could you please test what you commit? I was just flooded by TBs,
had to kill Gajim.
2008-07-21 14:36:45 +00:00
Brendan Taylor
a3d0166f1d wrong method name when restarting e2e 2008-07-20 15:06:15 +00:00
js
8c49e10f93 It's bad to silently drop errors when not running it from the SVN repo.
On Windows, it's even worse: When something throws a TB, the user won't
notice before Gajim is terminated (a dialog will show then that
gajim.exe.log was created, nothing more!)
2008-07-20 14:53:34 +00:00
js
cdbdaa52f3 Fix #4113. 2008-07-20 13:48:50 +00:00
Stephan Erb
d83f9da555 Improved groupchat minimization:
* partly rewrote join_room because it was hard to read
 * Correctly handle invites from anonymous rooms. Fixes #4057
 * Use HIG dialog for invitation requests
 * Fix bug where minimized groupchats where hidden after a reconnect
 * Removed some duplicated code
2008-07-19 17:36:21 +00:00
Brendan Taylor
8e9b2d1781 automatically restart esession when we can't decrypt a message 2008-07-18 23:33:59 +00:00
Brendan Taylor
010afb1176 disconnect session from chat window only when the highest remote contact changes 2008-07-18 22:42:28 +00:00
tomk
a58618c843 persistent HTTP connections in BOSH roughly implemented, added hack for openfire incapability of after-SASL-stream-restart-response in BOSH, changed doubles quotes to single 2008-07-18 00:34:49 +00:00
js
1fabaa8844 Keep last status on autoconnect. 2008-07-16 15:50:51 +00:00
js
d1c60a07e5 This should fix #4098. However, I'll let that bug open until I'm
very very sure and gave that a few days of testing.
2008-07-16 02:37:57 +00:00
Brendan Taylor
a6dfa86ad0 show warning dialog when receiving an unencryptable message 2008-07-15 03:16:58 +00:00
Brendan Taylor
d541b42236 fix clicking notification when someone logs in 2008-07-14 23:21:08 +00:00
Brendan Taylor
9d98117f21 make GPG passphrase dialog nonmodal, fixes #3975 2008-07-14 05:01:22 +00:00
Yann Leboulanger
b933e6cef0 detect sound player on first start as soon as gajim is started, not first time we open preferences window. Fixes #3566 2008-07-11 06:29:40 +00:00
Stephan Erb
fca6bdbbc4 [Florob] Improved URL matching.
We don't match all valid URIs like blub:blaa but include common used (non)-urls like www.google.de
2008-07-08 18:49:51 +00:00
Stephan Erb
0bb1f1d656 Correctly readd a metacontact family after removing a single brother.
* Coding standards
* remove useless key-list creation
2008-07-06 22:24:58 +00:00
Yann Leboulanger
74c53da32a fix arguments order in contacts.py, some coding standards. should fix #4081 2008-07-05 19:04:27 +00:00
Yann Leboulanger
1e636e7824 warn before connecting without PyOpenSSL. fixes #4065 2008-07-05 18:07:32 +00:00
Brendan Taylor
17844361bb sesison-related TB fixes 2008-07-03 23:19:44 +00:00
tomk
952e4a1569 moved bosh code from client_nb.py to bosh.py, replaced debug logging with debug.py by logging in whole xmpppy (debug.py is now unused) 2008-07-02 23:29:10 +00:00
js
6b3414552a Leopard's X11 is started automagically - we don't need this anymore. 2008-06-28 23:05:14 +00:00
Yann Leboulanger
db3ddc71ff prevent TB when reading pending events. Fixes #4035 2008-06-27 15:56:09 +00:00
Jean-Marie Traissard
a9877f14dd [erlehmann] Fixed regular URL matching expressions for "-". 2008-06-27 10:50:09 +00:00
Brendan Taylor
5a772a046c teeny-tiny fix 2008-06-26 23:37:24 +00:00
Brendan Taylor
b21a1e2489 win.get_controls() isn't needed anymore 2008-06-26 23:37:12 +00:00
Brendan Taylor
e3613be1fa first pass at stripping out the one-tab-per-session code 2008-06-26 23:36:58 +00:00
Stephan Erb
59b9e86fbb [erlehmann] Improved regular URL matching expressions. Fixes #3715.
URLs like (http://myFoobar.org) and http://en.wikipedia.org/wiki/Mornington_Crescent_(game) are now correctly detected.
2008-06-26 22:24:27 +00:00
Brendan Taylor
d6be46be84 hopefully fix some has_window bugs 2008-06-21 19:12:58 +00:00
Brendan Taylor
8b4627049b moved session negotiation handling from gajim.py to session.py 2008-06-21 19:12:47 +00:00
Brendan Taylor
7721abb2b1 fix handle_event() for pms and new_chat_from_jid() for existing chat controls 2008-06-18 04:11:11 +00:00
Stephan Erb
b1f13ca040 Remove Non-ASCII character. 2008-06-17 19:27:32 +00:00
Stephan Erb
473e2cdbd8 Handle remote roster changes.
* Don't traceback when another resource of us is moving contacts to new/different groups.
 * Always refilter all involved groups.
 * It is now possible to not update contacts severside when using add/remove_from_groups
2008-06-17 19:25:17 +00:00
Yann Leboulanger
5e5733e40a fix traceback when no control is opened. fixes #4024, #4028 2008-06-17 05:39:20 +00:00
Brendan Taylor
16c7dfca91 fix undefined variables in handle_event() 2008-06-17 03:27:54 +00:00
Jean-Marie Traissard
ca457a7ac2 groups :
-Use a method to get_shown_groups (possibly more work to do (special group attribute))
-Show contact only if contact.ask, not according to modified xep 0162 logic. (I don't get neither the xep
meaning, neither this modified logic, can you explain steve-e ?)
-Remove contact before we modify it req_sub(). Else we can't remove it because iter is not found.
-When removing a contact and we let him in see us (observer), manually set show to offline, so he is not set as
visible.
-Remove observer from observer group if we asked him auth (I mean before he answer). Xep 0162 say he is not an
observer then. Fix contact staying in observer group when we get auth later.
-Renaming groups seems fixed (it's an accident :p )

More work on group to follow
2008-06-15 21:48:13 +00:00
Brendan Taylor
2b074aed41 pass the ChatControl around with printed_chat events 2008-06-14 16:49:48 +00:00
Brendan Taylor
964cb10163 hopefully fix the last of the get_control calls (fixes #4018) 2008-06-14 08:43:20 +00:00
Stephan Erb
d5bbc403c9 Various roster fixes.
* don't traceback when selfcontact is disconnecting
 * make more use of "remove contact after last event removed" mechanism
 * correctly redraw bigbrothers after status change
 * handle situation where we receive a message, go offline without reading it and reconnect after another resource has moved the sending contact to another group.

know bugs: newly added transports added to "not in roster group"
2008-06-10 21:18:55 +00:00
Brendan Taylor
399233f293 detach sessions from controls when the highest priority contact changes.
this way we don't get multiple tabs when the remote user moves to another resource.
2008-06-10 02:58:17 +00:00
tomk
6a15c9b9c9 initial cleanup of xmpppy perfomed, see #3260 2008-06-09 00:32:02 +00:00
Jean-Marie Traissard
f9c981df5d -Set General and Observer group directly in contact instance, instead of calculating it each time
-When creating self-contact contact instance, store it with group 'self_contact', so it never goes in General
-Make general group not be seen visible because of self contact even if self.regroup
-Remove the self contact instance itself too when WE deconnect or when IT deconnect, so we will
not see it as offline if refilling roster (regroup account for example)
2008-06-08 21:27:31 +00:00
js
c2eb4b5a9f Completely remove OTR.
Sorry, it just wasn't maintainable. The problem is the current libotr
API. I'm sick of working around the strange libotr API, sick of getting
HTML messages, sick of losing messages. The final argument for
completely removing it was that we can't get the message ID of a sent
msg anymore - which we need. I tried to work around this as well, but
there seems to be no way to wait for a signal in glib the way I would
need it for the workaround (I wanted to emit a signal in inject_message
and then wait for it after the call to otr_message_fragment_and_send
so the signal can pass us the message id). And the last reason is that
we're heading towards a new release and thus want to stabilize the code,
thus don't have time to work around even more libotr API strangeness.
I will give feedback to the libotr developers, who are currently
planning a new API, so that we can hopefully see OTR support once again
as soon as libotr4 is released.

Kjell already announced that he will continue his branch:
https://code.launchpad.net/~afflux/gajim/otr

I really hope the libotr devs will provide a sane API with libotr4 so
we can integrate OTR support again.

Oh, and I added one more try/except block for OS X.
2008-06-08 15:27:05 +00:00
js
1eeee2d531 We really need a way to start X11 without an xterm on OS X. Any idea? 2008-06-08 10:29:06 +00:00