Skip to content

Commit

Permalink
update JoinRoomRecord without long room uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
AderanFeng committed Nov 23, 2023
1 parent 2c04ab3 commit 102e893
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ class RoomRepository @Inject constructor(
fetchService(roomUUID).getOrdinaryRoomInfo(RoomDetailOrdinaryReq(roomUUID = roomUUID)).toResult().also {
it.get()?.roomInfo?.run {
if (ownerUUID == appKVCenter.getUserInfo()?.uuid) return@run
// treat 32 length or longer string as long uuid
if (inviteCode.length >= 32) return@run
val title = if (isPmi == true) {
i18NFetcher.getString(I18NFetcher.JOIN_ROOM_RECORD_PMI_TITLE, ownerUserName)
} else {
Expand Down

0 comments on commit 102e893

Please sign in to comment.