openimsdk / open-im-sdk-ios

An OpenIM SDK in Objective-C for iOS
https://openim.io
MIT License
159 stars 144 forks source link

Bug: Don't get OIMMessageContentTypeTyping news #42

Closed tianyu9090 closed 3 months ago

tianyu9090 commented 8 months ago

What happened?

}

Don't get OIMMessageContentTypeTyping news

What did you expect to happen?

Another user is typing

How can we reproduce it (as minimally and precisely as possible)?

Another user is typing

Anything else we need to know?

It can be received using v3.5.0-rc1。

version

iOS V3.5.1 add Vv3.5.1-alpha.8

Cloud provider

pod 'OpenIMSDK', '~> 3.5.1-alpha.8'
Or pod 'OpenIMSDK', '~> 3.5.1'

OS version

```console # On Linux: $ cat /etc/os-release # paste output here $ uname -a # paste output here # On Windows: C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture # paste output here ```

Install tools

tianyu9090 commented 8 months ago

I read the latest version, and there's a method

} It is possible to get the user's input status, but this feature is not fully developed

std-s commented 7 months ago

hi, Use them together.

/**
 * Typing status for one-on-one chat
 *
 * @param conversationID    Receiver's ID
 * @param focus    Customized tip message
 */
- (void)changeInputStates:(NSString *)conversationID
                    focus:(BOOL)focus
                 onSuccess:(nullable OIMSuccessCallback)onSuccess
                 onFailure:(nullable OIMFailureCallback)onFailure;

/**
 * Typing status for one-on-one chat
 *
 * @param conversationID    Conversation's ID
 * @param userID    User's ID
 */
- (void)getInputstates:(NSString *)conversationID
                userID:(NSString *)userID
             onSuccess:(nullable OIMInputStatusChangedCallback)onSuccess
             onFailure:(nullable OIMFailureCallback)onFailure;
@end
tianyu9090 commented 7 months ago

I'm using pod 'OpenIMSDK', '~> 3.5.1'. I didn’t see the method api you posted. /**

/**

std-s commented 3 months ago

@tianyu9090 Will be added soon.