Changeset 4808
- Timestamp:
- 05/30/07 23:59:39 (1 year ago)
- Files:
-
- WiredClient/trunk/WCMessages.m (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
WiredClient/trunk/WCMessages.m
r4799 r4808 252 252 NSMutableArray *array; 253 253 WCMessage *message; 254 WCMessageType type; 254 255 255 256 array = [NSMutableArray array]; 256 enumerator = [unreadOnly ? [self _unreadMessagesForType:[conversation type]] : [self _messagesForType:[conversation type]] objectEnumerator]; 257 type = [conversation type]; 258 enumerator = [unreadOnly ? [self _unreadMessagesForType:type] : [self _messagesForType:type] objectEnumerator]; 257 259 258 260 while((message = [enumerator nextObject])) { … … 633 635 [_allConversations addObject:conversation]; 634 636 [_conversations setObject:conversation forKey:[conversation key]]; 635 636 637 } 637 638 … … 669 670 return; 670 671 671 key = [WCConversation keyForType:WCMessage PrivateMessageuser:user connection:[self connection]];672 key = [WCConversation keyForType:WCMessageBroadcast user:user connection:[self connection]]; 672 673 conversation = [_conversations objectForKey:key]; 673 674 674 675 if(!conversation) { 675 conversation = [WCConversation messageConversationWithUser:user connection:[self connection]];676 conversation = [WCConversation broadcastConversationWithUser:user connection:[self connection]]; 676 677 [_allConversations addObject:conversation]; 677 678 [_conversations setObject:conversation forKey:[conversation key]];
