diff --git a/README.md b/README.md
index f2fa377..2bd3c31 100644
--- a/README.md
+++ b/README.md
@@ -17,6 +17,9 @@ unaipp多端im+会议+积分商城
+### UI 设计图地址
+```https://lanhuapp.com/web/#/item/project/stage?pid=c8ab83e4-8e48-4e5b-87cc-620f9ce8512b&image_id=4236317e-0912-490c-91e1-6c816e7396af&tid=8050e376-3e33-43e8-bfdc-51ddb2c371b1```
+
### TUILiveKit 文档地址
```https://trtc.io/zh/document/60034?platform=ios&product=live```
diff --git a/TUIKit/components/TUIChat/index.vue b/TUIKit/components/TUIChat/index.vue
index ac63c1f..5571e55 100644
--- a/TUIKit/components/TUIChat/index.vue
+++ b/TUIKit/components/TUIChat/index.vue
@@ -73,6 +73,7 @@
]"
:enableAt="featureConfig.InputMention"
:isMuted="false"
+ :groupID="groupID"
:muteText="TUITranslateService.t('TUIChat.您已被管理员禁言')"
:placeholder="TUITranslateService.t('TUIChat.请输入消息')"
:inputToolbarDisplayType="inputToolbarDisplayType"
@@ -361,8 +362,6 @@
)
currentConversationID.value = conversationID
}
-
-
diff --git a/TUIKit/components/TUIChat/message-input/index.vue b/TUIKit/components/TUIChat/message-input/index.vue
index 8c7debe..2f8b924 100644
--- a/TUIKit/components/TUIChat/message-input/index.vue
+++ b/TUIKit/components/TUIChat/message-input/index.vue
@@ -4,7 +4,7 @@
-
+
diff --git a/TUIKit/components/TUIChat/message-list/index.vue b/TUIKit/components/TUIChat/message-list/index.vue
index 7061fcf..df7e450 100644
--- a/TUIKit/components/TUIChat/message-list/index.vue
+++ b/TUIKit/components/TUIChat/message-list/index.vue
@@ -47,6 +47,7 @@
:class="'message-li ' + item.flow"
>
@@ -376,6 +377,17 @@
}
}
+ /** 更新用户群状态 */
+ const setUserAudioPlayed = async () => {
+ if (props.isGroup) {
+ const res = await TUIGroupService.getGroupMemberProfile({
+ groupID: props.groupID,
+ userIDList: [tencentUserSig.value.userId]
+ })
+ userType.value = res.data.memberList[0].role
+ }
+ }
+
onMounted(async () => {
// Retrieve the information about whether the audio has been played from localStorage
audioPlayedMapping.value =
@@ -401,13 +413,7 @@
isNotInGroup: boolean
*/
- if (props.isGroup) {
- const res = await TUIGroupService.getGroupMemberProfile({
- groupID: props.groupID,
- userIDList: [tencentUserSig.value.userId]
- })
- userType.value = res.data.memberList[0].role
- }
+ setUserAudioPlayed()
})
onUnmounted(() => {
@@ -452,6 +458,7 @@
}
async function onMessageListUpdated(list: IMessageModel[]) {
+ setUserAudioPlayed()
observer?.disconnect()
messageList.value = list
.filter(message => !message.isDeleted)
@@ -914,6 +921,11 @@
audioPlayedMapping.value[messageID] = true
}
+ /** 是否包含【退出群组】文字 */
+ const isExitGroup = (str: string): boolean => {
+ return str?.includes('退出群组')
+ }
+
defineExpose({
oneByOneForwardMessage,
mergeForwardMessage,
diff --git a/TUIKit/components/TUIChat/message-list/message-elements/message-tip.vue b/TUIKit/components/TUIChat/message-list/message-elements/message-tip.vue
index 29e8cf5..b698f0b 100644
--- a/TUIKit/components/TUIChat/message-list/message-elements/message-tip.vue
+++ b/TUIKit/components/TUIChat/message-list/message-elements/message-tip.vue
@@ -1,10 +1,10 @@
-