Changeset 25574
- Timestamp:
- 11/13/2008 03:20:22 AM (2 months ago)
- Files:
-
- trunk/Frameworks/Adium Framework/Source/AIListContact.h (modified) (3 diffs)
- trunk/Frameworks/Adium Framework/Source/AIListContact.m (modified) (1 diff)
- trunk/Plugins/Purple Service/adiumPurpleConversation.m (modified) (1 diff)
- trunk/Plugins/Purple Service/CBPurpleAccount.h (modified) (1 diff)
- trunk/Plugins/Purple Service/CBPurpleAccount.m (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Frameworks/Adium Framework/Source/AIListContact.h
r24814 r25574 19 19 #import <Adium/AIListGroup.h> 20 20 21 typedef enum 22 { 23 AIGroupChatNone = 0x0000, /**< No flags */ 24 AIGroupChatVoice = 0x0001, /**< Voiced user or "Participant" */ 25 AIGroupChatHalfOp = 0x0002, /**< Half-op */ 26 AIGroupChatOp = 0x0004, /**< Channel Op or Moderator */ 27 AIGroupChatFounder = 0x0008, /**< Channel Founder */ 28 AIGroupChatTyping = 0x0010, /**< Currently typing */ 29 } AIGroupChatFlags; 30 21 31 #define KEY_AB_UNIQUE_ID @"AB Unique ID" 22 32 … … 27 37 NSString *remoteGroupName; 28 38 NSString *internalUniqueObjectID; 39 AIGroupChatFlags groupChatFlags; 29 40 } 30 41 … … 44 55 @property (readonly, nonatomic) NSString *ownPhoneticName; 45 56 @property (readonly, nonatomic) NSString *serversideDisplayName; 57 58 @property (readwrite, nonatomic) AIGroupChatFlags groupChatFlags; 46 59 47 60 @property (readonly, nonatomic) BOOL canJoinMetaContacts; trunk/Frameworks/Adium Framework/Source/AIListContact.m
r25468 r25574 569 569 } 570 570 571 @synthesize groupChatFlags; 572 571 573 #pragma mark Parents 572 574 /*! trunk/Plugins/Purple Service/adiumPurpleConversation.m
r25443 r25574 314 314 static void adiumPurpleConvUpdateUser(PurpleConversation *conv, const char *user) 315 315 { 316 AILog(@"adiumPurpleConvUpdateUser: %s",user); 316 CBPurpleAccount *account = accountLookup(purple_conversation_get_account(conv)); 317 AIListContact *contact = [account contactWithUID:[account uidForContactWithUID:[NSString stringWithUTF8String:user] inChat:groupChatLookupFromConv(conv)]]; 318 contact.groupChatFlags = purple_conv_chat_user_get_flags(PURPLE_CONV_CHAT(conv), user); 317 319 } 318 320 trunk/Plugins/Purple Service/CBPurpleAccount.h
r24983 r25574 172 172 173 173 - (NSString *)_UIDForAddingObject:(AIListContact *)object; 174 - (NSString *)uidForContactWithUID:(NSString *)inUID inChat:(AIChat *)chat; 174 175 175 176 #pragma mark Contacts trunk/Plugins/Purple Service/CBPurpleAccount.m
r25559 r25574 1190 1190 listContact = [self contactWithUID:[self uidForContactWithUID:contactName inChat:chat]]; 1191 1191 [listContact setFormattedUID:contactName notify:NotifyNow]; 1192 1193 //XXX if purple's flags change this could stop working 1194 listContact.groupChatFlags = (AIGroupChatFlags)flags; 1192 1195 1193 1196 if (alias && [alias length] && ![alias isEqualToString:contactName]) {