Changeset 4808

Show
Ignore:
Timestamp:
05/30/07 23:59:39 (1 year ago)
Author:
morris
Message:

Broadcast messages should go under broadcasts

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • WiredClient/trunk/WCMessages.m

    r4799 r4808  
    252252        NSMutableArray  *array; 
    253253        WCMessage               *message; 
     254        WCMessageType   type; 
    254255         
    255256        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]; 
    257259         
    258260        while((message = [enumerator nextObject])) { 
     
    633635                [_allConversations addObject:conversation]; 
    634636                [_conversations setObject:conversation forKey:[conversation key]]; 
    635  
    636637        } 
    637638 
     
    669670                return; 
    670671 
    671         key                             = [WCConversation keyForType:WCMessagePrivateMessage user:user connection:[self connection]]; 
     672        key                             = [WCConversation keyForType:WCMessageBroadcast user:user connection:[self connection]]; 
    672673        conversation    = [_conversations objectForKey:key]; 
    673674         
    674675        if(!conversation) { 
    675                 conversation = [WCConversation messageConversationWithUser:user connection:[self connection]]; 
     676                conversation = [WCConversation broadcastConversationWithUser:user connection:[self connection]]; 
    676677                [_allConversations addObject:conversation]; 
    677678                [_conversations setObject:conversation forKey:[conversation key]];