Changeset 110
- Timestamp:
- 21/10/08 14:02:45 (3 months ago)
- Location:
- jggtrans/src
- Files:
-
- 2 modified
-
sessions.c (modified) (3 diffs)
-
users.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
jggtrans/src/sessions.c
r102 r110 1005 1005 1006 1006 if (c->blocked) return GG_USER_BLOCKED; 1007 if (c->got_online || c->subscribe==SUB_FROM || c->subscribe==SUB_BOTH) notify_type|=GG_USER_NORMAL;1008 if (c->got_probe || c->subscribe==SUB_TO || c->subscribe==SUB_BOTH) notify_type|=GG_USER_OFFLINE;1007 if (c->got_online || c->subscribe==SUB_FROM || c->subscribe==SUB_BOTH) return GG_USER_NORMAL; 1008 if (c->got_probe || c->subscribe==SUB_TO || c->subscribe==SUB_BOTH) return GG_USER_OFFLINE; 1009 1009 1010 1010 return notify_type; … … 1022 1022 add=new_notify_type&(~c->gg_notify_type); 1023 1023 1024 if (del) gg_remove_notify_ex(s->ggs,c->uin, del);1025 if (add) gg_add_notify_ex(s->ggs,c->uin, add);1024 if (del) gg_remove_notify_ex(s->ggs,c->uin,new_notify_type); 1025 if (add) gg_add_notify_ex(s->ggs,c->uin,new_notify_type); 1026 1026 1027 1027 c->gg_notify_type=new_notify_type; … … 1045 1045 for(it=g_list_first(s->user->contacts);it;it=it->next){ 1046 1046 Contact *c=(Contact *)it->data; 1047 userlist[i]=c->uin;1048 1047 c->gg_notify_type=compute_notify_type(c); 1049 types[i]=c->gg_notify_type; 1050 i++; 1048 if(c->gg_notify_type){ 1049 userlist[i]=c->uin; 1050 types[i]=c->gg_notify_type; 1051 i++; 1052 } 1051 1053 } 1052 1054 -
jggtrans/src/users.h
r34 r110 37 37 gboolean ignored; 38 38 gboolean blocked; 39 SubscriptionType subscribe; 39 SubscriptionType subscribe; /* copy of item s10n state from user roster */ 40 40 41 gboolean got_online; 42 gboolean got_probe; 41 gboolean got_online; /* user sent direct available presence to this user */ 42 gboolean got_probe; /* user server sent presence probe to this user */ 43 43 44 44 int gg_notify_type; … … 62 62 char *locale; 63 63 char * status; 64 SubscriptionType subscribe; 64 SubscriptionType subscribe; /* copy of transport item s10n state from user roster */ 65 65 66 66 int confirmed;
