Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/crabcode
Original file line number Diff line number Diff line change
Expand Up @@ -5879,11 +5879,12 @@ msg_listen() {
msg_log "<" "$from" "$text"
msg_say "$from" "$text"
done
# Update last_ts to the latest message timestamp
# Update last_ts to the latest message timestamp (keep full float precision
# so the relay's strict > comparison excludes already-seen messages)
local new_ts
new_ts=$(echo "$response" | jq -r '.[-1].ts // 0' 2>/dev/null)
if [ -n "$new_ts" ] && [ "$new_ts" != "0" ]; then
last_ts="${new_ts%.*}"
last_ts="$new_ts"
fi
fi

Expand Down