@smart-link/rn-im 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
1
  import { ChatGroupState, CollectionState, ConversationState, ForwardState, IUser, MessageState, SettingState } from '@smart-link/im-base';
2
2
  import { ContactState, PanelState, VideoState } from '../slice';
3
3
  export declare function useConversation(): ConversationState;
4
+ export declare function useUnreadTotal(): number;
4
5
  export declare function useAvatars(): Record<string, string>;
5
6
  export declare function useMessage(): MessageState;
6
7
  export declare function useAuth(): {
@@ -2,6 +2,9 @@ import { useSelector } from 'react-redux';
2
2
  export function useConversation() {
3
3
  return useSelector(state => state['chat/conversation']);
4
4
  }
5
+ export function useUnreadTotal() {
6
+ return useSelector(state => state['chat/conversation']['unreadTotal']);
7
+ }
5
8
  export function useAvatars() {
6
9
  return useSelector(state => state['chat/conversation']['avatarsMap']);
7
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smart-link/rn-im",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -65,7 +65,7 @@
65
65
  "react-redux": "^8.1.3",
66
66
  "redux": "^4.2.1",
67
67
  "redux-thunk": "^2.4.2",
68
- "@smart-link/rn-ui": "^1.1.1",
68
+ "@smart-link/rn-ui": "^1.1.2",
69
69
  "@smart-link/im-base": "^1.1.2"
70
70
  },
71
71
  "files": [