| 279 | | |
|---|
| 280 | | AIChat *chat = [[[AIObject sharedAdiumInstance] chatController] chatWithContact:contact]; |
|---|
| 281 | | |
|---|
| 282 | | [account typingUpdateForIMChat:chat typing:[NSNumber numberWithInt:typingState]]; |
|---|
| | 279 | |
|---|
| | 280 | AIChat *chat; |
|---|
| | 281 | switch (typingState) { |
|---|
| | 282 | case AINotTyping: |
|---|
| | 283 | chat = [[[AIObject sharedAdiumInstance] chatController] existingChatWithContact:contact]; |
|---|
| | 284 | break; |
|---|
| | 285 | case AITyping: |
|---|
| | 286 | case AIEnteredText: |
|---|
| | 287 | chat = [[[AIObject sharedAdiumInstance] chatController] chatWithContact:contact]; |
|---|
| | 288 | AILogWithSignature(@"Made a chat for %s: %i", name, typingState); |
|---|
| | 289 | break; |
|---|
| | 290 | } |
|---|
| | 291 | |
|---|
| | 292 | if (chat) |
|---|
| | 293 | [account typingUpdateForIMChat:chat typing:[NSNumber numberWithInt:typingState]]; |
|---|