Skip to content

Commit

Permalink
fix: get_chat_room_id and get_chat_id method in the chat_message fix …
Browse files Browse the repository at this point in the history
…index
  • Loading branch information
psychology50 committed Oct 30, 2024
1 parent acf467d commit fa79dfd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ protected ChatMessage(ChatMessageBuilder builder) {
}

public Long getChatRoomId() {
return Long.parseLong(id.split(":")[1]);
return Long.parseLong(id.split(":")[0]);
}

public Long getChatId() {
return Long.parseLong(id.split(":")[3]);
return Long.parseLong(id.split(":")[2]);
}

@Override
Expand Down

0 comments on commit fa79dfd

Please sign in to comment.