Commit Graph

132 Commits

Author SHA1 Message Date
Stephan Erb 0671e6c865 Correctly count metacontacts in non merged accounts mode if we have metacontacts over several accounts. 2008-07-05 06:33:49 +00:00
Stephan Erb 215fdc964a Count metacontacts only once.
Remove timing information for roster drawing.
2008-07-04 21:29:46 +00:00
Yann Leboulanger 2fd4ea7637 keep caps info when we create a contact instance from groupchat_contact instance 2008-07-03 21:43:28 +00:00
Stephan Erb 2cd24aa8ae Do not update metacontacts when nothing has changed. Fixes sending metacontact info to server when we expand a groupchat. 2008-06-26 14:09:27 +00:00
Yann Leboulanger ef0b115710 quick fix for private messages until we support caps for them. see #4033 2008-06-20 06:34:24 +00:00
js 9634f98250 * Implemented XEP-0184 section 5.
* Added NS_RECEIPTS to protocol namespace list.
* Show our support of XEP-0184 in caps.
* Added a big, fat warning to get_contact as this does not work as
  expected.
* There was some strangeness in our XEP-0022, it added an id tag to
  the x tag, which isn't mentioned anywhere in the XEP. And for some
  strange reason, that id even was the same all the time.
* Fixed a typo.
2008-06-17 16:03:21 +00:00
Stephan Erb c5f7922e29 Two roster sort fixes.
* Change metacontact ordering. Fallback to priority only if two contacts have the same show, not the other way round.
 * Move contacts that just signed out to the bottom of the group, not to the top.
2008-06-15 23:03:51 +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
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
Jean-Marie Traissard 9f613afd4f Don't traceback when refiltering during the model.clear (has a bad account name).
Fixes #3893.
2008-06-01 21:13:06 +00:00
Yann Leboulanger a3827fe5d0 new XEP-0115 implementation (version 1.5) 2008-04-20 22:58:47 +00:00
Stephan Erb 4e6bd4ee8f Port roster_window to gtk.TreeModelFilter.
Contacts are now online hidden when they connect/reconnect and not completely removed/readded. Should come with a great speed improvement for people with big rosters.
There are still a few known problems but non that should dalay this patch any longer. Related bugs will be tracked with 'modelfilter' keyword.

See #1201
2008-04-20 14:01:04 +00:00
Yann Leboulanger f3665cd689 don't remove metacontact when we reconnect. fixes #3771 2008-04-01 23:13:10 +00:00
Jean-Marie Traissard 75983ff571 Some "jep" -> "xep" 2008-03-30 20:35:02 +00:00
Yann Leboulanger 13b6d75588 get gajim module where it is. fixes #3661 2008-01-06 12:12:24 +00:00
Yann Leboulanger 2aef21f026 [Elmar Hoffmann] prefer contacts on the same server as you in metacontacts. fixes #3649 2008-01-06 11:12:07 +00:00
Yann Leboulanger 19761f081f [js & I] show pep info in account tooltip, fix a bug in create_contact() 2007-12-13 20:26:13 +00:00
Yann Leboulanger a645006bf8 merge diff from trunk 2007-12-12 08:44:46 +00:00
Yann Leboulanger ea24ee82e5 merge diff from trunk to pep branch 2007-08-09 15:39:18 +00:00
Piotr Gaczkowski e3ef0821b3 Merge with trunk 2007-06-03 10:04:20 +00:00
Piotr Gaczkowski 19c5c70f80 Initial User Tune support 2007-04-01 09:02:04 +00:00
Piotr Gaczkowski 39f161fa6d Version changed 2007-03-29 20:24:30 +00:00
Piotr Gaczkowski 06f43c1e2a Mood and Activity shown in tooltips. Caps set properly 2007-03-29 19:40:50 +00:00
Piotr Gaczkowski 149b0fcdef Buggy. Don\'t touch 2007-03-29 19:04:14 +00:00
Piotr Gaczkowski 512db7618b Lame Mood and Activity support. Announcing caps. 2007-03-28 21:18:16 +00:00
Piotr Gaczkowski e0c9b6309f Third buggy commit 2007-03-25 22:47:04 +00:00
Yann Leboulanger 019f43fa38 when we compare 2 offline contacts, the one which has a status messages is shown above the one without. fixes #3010 2007-03-09 19:17:19 +00:00
Yann Leboulanger 9a3505a9e3 fix online / total transport count 2007-01-24 10:00:17 +00:00
Yann Leboulanger 7e11bf1172 do not count transport in global online / total users. fixes #2801 2006-12-26 13:40:01 +00:00
Yann Leboulanger e8657b4fdb do not count not in roster contacts in online / total users. see #2801 2006-12-26 13:33:09 +00:00
Yann Leboulanger e4a6d895ee do not count priority and if contact is a transport when computing metacontact score when contact is offline. fixes #2691 2006-11-21 22:27:35 +00:00
Yann Leboulanger 40d298c231 don't count our jid in number of contacts, count transport only if show_transports_group is True, update transports row when a transport connects / disconnects. fixes #1728 2006-11-15 15:56:42 +00:00
Yann Leboulanger f15305b7c6 [merzhin & asterix] show number of connecter / total contacts in account and group rows. fixes #1728 2006-11-15 10:44:27 +00:00
Yann Leboulanger ac7bc2a229 [Brice Maron] ability to remove a group (and eventually contacts in this group too). fixes #485 2006-11-13 08:27:16 +00:00
Yann Leboulanger fafa2d0c0a show our server in roster when we get a message from it, and hide it if show_transports_group is False. Fixes #2568 2006-10-17 12:31:16 +00:00
Yann Leboulanger 8a45a73226 show in roster not in roster contacts. also fixes a TB when receiving messages from not in roster contacts. 2006-10-16 21:37:32 +00:00
Nikos Kouremenos a1820a4ed5 fix logic for observers to work as XEP 0162 says 2006-10-15 13:23:05 +00:00
Yann Leboulanger 713d523344 fix wrong var name. fixes TBs 2006-10-10 17:25:26 +00:00
Jean-Marie Traissard 9f417b7396 syntax 2006-10-10 16:34:09 +00:00
Nikos Kouremenos a1102880b9 intro is_hidden_from_roster and is_observer 2006-10-10 15:57:20 +00:00
Nikos Kouremenos 9002b3d293 put my email (and jid), not one of my JIDs 2006-09-28 11:31:25 +00:00
Yann Leboulanger 97420e6a7a prevent TB when / in gc nicknames 2006-09-13 07:46:35 +00:00
Dimitur Kirov 335870646d take on account priorities, which are <= 0 2006-07-14 07:13:59 +00:00
Dimitur Kirov d8bf9f69a8 add two more possible statuses - #1945 2006-05-09 19:56:29 +00:00
Yann Leboulanger d040cc13fc be sure chat_control.contact is never None, even when server connection is brocken. Fixes #1878 2006-04-20 16:57:43 +00:00
Yann Leboulanger fe2ec40ad7 new metacontacts JEP (not yet published) uses order instead of priority. 2006-04-11 20:16:33 +00:00
Yann Leboulanger 1d496233f8 update comment 2006-04-10 09:04:14 +00:00
Yann Leboulanger 0793c64053 contacts.get_contact() now always returns a list (empty if needed) when no resource is given. Should fix #1821 2006-04-09 09:39:02 +00:00
Yann Leboulanger 0828f88e29 fix logic. Fixes #1798 2006-04-04 19:32:12 +00:00
Nikos Kouremenos 7ad5bf4580 improve comment 2006-04-04 11:44:17 +00:00
Yann Leboulanger 117acf702c contact.show can be not in roster. Fixes #1792 2006-04-01 10:23:40 +00:00
Yann Leboulanger d0f7758647 clean common.contacts._contacts when we remove a contact. Fixes #1788 2006-03-31 17:54:52 +00:00
Yann Leboulanger 3b46d08e5d prevent a useless stanza 2006-03-29 20:04:48 +00:00
Yann Leboulanger 65edabfb6c some cleanup 2006-03-28 14:50:19 +00:00
Nikos Kouremenos b4d8f99d58 nothing 2006-03-27 22:30:02 +00:00
Dimitur Kirov c9bdf56da7 show can be 'error' too 2006-03-24 23:50:26 +00:00
Yann Leboulanger f8db75e255 New metacontact way. JEP is not published yet, but I talked with the author. Old metacontact info are removed automaticaly 2006-03-24 12:55:56 +00:00
Nikos Kouremenos 9ec5e798b1 improve a comment 2006-03-05 11:42:42 +00:00
Yann Leboulanger 1c13fcd648 [Geobert] Don't send bot JEP85 and JEP22 when only JEP22 is supported by contact. Fixes #1317 2006-03-03 14:41:55 +00:00
Yann Leboulanger aa90dc35a6 typo 2006-03-01 19:25:55 +00:00
Yann Leboulanger 6505d57f38 some check in meta contacts. See #1627 2006-03-01 18:58:28 +00:00
Yann Leboulanger 4b327b5682 [Geobert] JEP-0022 partial support (composing). Tunned by me. Fixes #1317 2006-03-01 18:16:54 +00:00
Yann Leboulanger 0b2f9d4617 we now keep last_status_time, show it in tooltip and information window, ask it (jabber:iq:last, JEP-0012) when we open information window. Fixes #1133 2006-02-22 14:31:01 +00:00
Yann Leboulanger 4372ed7fe4 typo. Fix #1521 2006-02-06 18:21:40 +00:00
Yann Leboulanger 89d2420473 typo 2006-02-05 10:19:36 +00:00
Yann Leboulanger f22b455da8 when we remove a contact that has subcontacts or is a subcontact, update meta contacts info stored on the server 2006-01-31 21:59:12 +00:00
Yann Leboulanger b8243fd45b prevent to return None in get_children_contacts 2006-01-29 17:56:39 +00:00
Yann Leboulanger ec927d3a4b We can now add and remove meta contacts by drag and drop from same group 2006-01-26 23:20:27 +00:00
Yann Leboulanger 4f21775305 we can now get meta contacts from server and display them 2006-01-26 11:23:15 +00:00
Yann Leboulanger d2ab3031f1 contact.name can now be empty. So use contact.get_shown_name() that returns a user friendly name 2006-01-10 18:30:57 +00:00
Travis Shirk a6bdc39d5d Private message bug fixes 2006-01-08 23:14:50 +00:00
Travis Shirk 460ac48ec4 Chatstate fixes and merged revisions 5054,5059-5060 via svnmerge from
svn://svn.gajim.org/gajim/trunk

........
r5054 | nicfit | 2006-01-07 22:06:08 -0700 (Sat, 07 Jan 2006) | 2 lines

typo fix

........
r5059 | asterix | 2006-01-08 10:03:32 -0700 (Sun, 08 Jan 2006) | 2 lines

remove the Gmail option from GUI, it's only in ACE. fixes #883

........
r5060 | asterix | 2006-01-08 12:14:19 -0700 (Sun, 08 Jan 2006) | 2 lines

the Contact.jid returned by contact_from_gc_contact() function is the fake jid, even if we know the real jid. this means pm windows are index by the fake jid (gajim.interface.instances[account]['chats'][FAKE_JID])

........
2006-01-08 20:32:39 +00:00
Travis Shirk e53e786182 Trying to fix PM regression since merge 2006-01-08 07:50:26 +00:00
Travis Shirk ad087f10c4 Use contacts.py from trunk and bug fix 2006-01-08 05:27:36 +00:00
Travis Shirk c033a670d1 Merged revisions 5044-5051 via svnmerge from
svn://svn.gajim.org/gajim/trunk

........
r5044 | asterix | 2006-01-07 17:17:05 -0700 (Sat, 07 Jan 2006) | 2 lines

open the vcard on the real jid in gc if we know it

........
r5045 | asterix | 2006-01-07 17:23:33 -0700 (Sat, 07 Jan 2006) | 2 lines

use real jid when we open a pm message if we know it

........
r5046 | asterix | 2006-01-07 17:27:38 -0700 (Sat, 07 Jan 2006) | 2 lines

get contact from the self.contacts so that even if it's pm we get a Contact instance

........
r5047 | asterix | 2006-01-07 17:30:58 -0700 (Sat, 07 Jan 2006) | 2 lines

don't ask vcard when we get an error presence

........
r5048 | asterix | 2006-01-07 17:39:05 -0700 (Sat, 07 Jan 2006) | 2 lines

fix logic in contacts.add_contact() function

........
r5049 | asterix | 2006-01-07 18:08:21 -0700 (Sat, 07 Jan 2006) | 2 lines

do not use underline in join_gc menu

........
r5050 | asterix | 2006-01-07 18:12:09 -0700 (Sat, 07 Jan 2006) | 2 lines

don't use underline in all menus that contact an account name

........
r5051 | asterix | 2006-01-07 18:18:16 -0700 (Sat, 07 Jan 2006) | 2 lines

add an ACE option to hide the avatar in tabbed chat window

........
2006-01-08 05:05:16 +00:00
Travis Shirk fada255296 groupchat_window completely merged 2006-01-07 22:53:46 +00:00
Travis Shirk 58f2d03dd3 Groupchat roster work 2006-01-06 03:36:07 +00:00
Travis Shirk c4f4da5aef Tracking trunk changes:
Merged revisions 5008-5011 via svnmerge from
svn://svn.gajim.org/gajim/trunk

........
r5008 | asterix | 2006-01-05 12:55:22 -0700 (Thu, 05 Jan 2006) | 2 lines

new_chat must be called with a Contact instance instead of GC_Contact

........
r5009 | asterix | 2006-01-05 12:56:35 -0700 (Thu, 05 Jan 2006) | 2 lines

use new contacts functions in common/gajim.py

........
r5010 | asterix | 2006-01-05 12:59:06 -0700 (Thu, 05 Jan 2006) | 2 lines

get_first_contact_from_jid doesn't return a GC_Contact instance

........
r5011 | asterix | 2006-01-05 12:59:35 -0700 (Thu, 05 Jan 2006) | 2 lines

check correctly if a contact leaves the groupchat

........
2006-01-06 02:20:38 +00:00
Travis Shirk 893f15aeee Working on GroupchatControl 2006-01-05 05:51:28 +00:00
Travis Shirk 757ed426e3 Merged revisions 4987-4989,4991-4996,4999,5003 via svnmerge from
svn://svn.gajim.org/gajim/trunk

........
r4987 | nk | 2006-01-03 04:00:51 -0700 (Tue, 03 Jan 2006) | 1 line

commit 48x48 transport online/offline imgs by Grenshad (I pngcrushed them)
........
r4988 | nk | 2006-01-03 04:32:01 -0700 (Tue, 03 Jan 2006) | 1 line

icon in notification window not always jabber now. MSN if he uses msn etc. thanks stian barmen for helping me test
........
r4989 | nk | 2006-01-03 04:40:44 -0700 (Tue, 03 Jan 2006) | 1 line

all strings I got report about them, are not translatable; pot/po update
........
r4991 | asterix | 2006-01-03 08:08:21 -0700 (Tue, 03 Jan 2006) | 2 lines

don't remove the jid entry in _contacts[account] when we remove a contact

........
r4992 | asterix | 2006-01-03 08:18:30 -0700 (Tue, 03 Jan 2006) | 2 lines

fix logic

........
r4993 | asterix | 2006-01-03 09:04:14 -0700 (Tue, 03 Jan 2006) | 2 lines

a GC_Contact can have a resource if we knoe his real JID

........
r4994 | asterix | 2006-01-03 09:32:58 -0700 (Tue, 03 Jan 2006) | 2 lines

missing argument in create_gc_contact

........
r4995 | asterix | 2006-01-03 10:36:41 -0700 (Tue, 03 Jan 2006) | 2 lines

we save gc_contact vcard instance in instances[self.account]['infos'][Fake_jid]

........
r4996 | asterix | 2006-01-03 11:17:43 -0700 (Tue, 03 Jan 2006) | 2 lines

in DataForm, a field of type 'list-single' can have no <value> element. Create a default one in such a case to prevent TB

........
r4999 | asterix | 2006-01-04 05:52:26 -0700 (Wed, 04 Jan 2006) | 2 lines

prevent TB when we move a contact that was in no group

........
r5003 | asterix | 2006-01-04 09:03:42 -0700 (Wed, 04 Jan 2006) | 2 lines

handle correctly unlabeled option values in DataForms

........
2006-01-05 03:17:36 +00:00
Travis Shirk b239d4ff00 History action, some chatstate stuff moved over, etc. 2006-01-02 01:23:40 +00:00
Travis Shirk 1360933ba9 Merged in trunk updates, including meta_contacts
Merged revisions 4951,4962-4969 via svnmerge from
svn://svn.gajim.org/gajim/trunk

........
r4951 | nk | 2005-12-30 16:50:36 -0700 (Fri, 30 Dec 2005) | 1 line

fixes in greek transl
........
r4962 | asterix | 2006-01-01 11:41:04 -0700 (Sun, 01 Jan 2006) | 2 lines

merge meta_contacts branch with trunk. Meta contacts are not in gajim yet, but framework is here. We now use gajim.contacts.many_functions() to handle contacts and groupchat_contacts.

........
r4963 | asterix | 2006-01-01 11:43:24 -0700 (Sun, 01 Jan 2006) | 2 lines

correct contacts file

........
r4964 | asterix | 2006-01-01 11:47:26 -0700 (Sun, 01 Jan 2006) | 2 lines

dict.remove() doesn't exists, it's del dict[]

........
r4965 | asterix | 2006-01-01 11:50:15 -0700 (Sun, 01 Jan 2006) | 2 lines

some missing commits from branch

........
r4966 | asterix | 2006-01-01 11:53:30 -0700 (Sun, 01 Jan 2006) | 2 lines

end of gc_contact.nick -> gc_contact.name

........
r4967 | asterix | 2006-01-01 12:05:59 -0700 (Sun, 01 Jan 2006) | 2 lines

new ACE option: send_sha_in_gc_presence that allow to send sha info in groupchat presences

........
r4968 | asterix | 2006-01-01 12:12:36 -0700 (Sun, 01 Jan 2006) | 2 lines

0.9.1-2 in debian that solve the group bug (commit [4924])

........
r4969 | asterix | 2006-01-01 12:31:13 -0700 (Sun, 01 Jan 2006) | 2 lines

typo

........
2006-01-01 20:06:26 +00:00