Skip to content

fix: 🐛 Rename updateAt to updatedAt in Message model for consistency#26

Merged
dhyash-simform merged 1 commit into
masterfrom
fix/rename-updateat-parameter
Jun 5, 2026
Merged

fix: 🐛 Rename updateAt to updatedAt in Message model for consistency#26
dhyash-simform merged 1 commit into
masterfrom
fix/rename-updateat-parameter

Conversation

@japanshah-simform

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Renames the Message model’s “last updated” timestamp API from updateAt to updatedAt for consistency, while attempting to preserve backwards compatibility via deprecations.

Changes:

  • Added updatedAt field to Message, with deprecated updateAt getter/constructor/copyWith parameter mapping to updatedAt.
  • Updated Message.fromJson() to read updated_at with fallback to legacy update_at.
  • Added an Unreleased changelog entry describing the rename and JSON behavior.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
lib/src/models/data_models/message.dart Introduces updatedAt and updates JSON parsing/serialization + equality/hash behavior.
CHANGELOG.md Documents the rename under an Unreleased entry.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/src/models/data_models/message.dart
Comment thread lib/src/models/data_models/message.dart
Comment thread lib/src/models/data_models/message.dart Outdated
Comment thread CHANGELOG.md Outdated
@japanshah-simform japanshah-simform force-pushed the fix/rename-updateat-parameter branch from 2703ff7 to 9cbf9a2 Compare May 19, 2026 08:07
Comment thread lib/src/models/data_models/message.dart Outdated
Comment thread CHANGELOG.md Outdated
@vasu-nageshri vasu-nageshri force-pushed the fix/rename-updateat-parameter branch from 9cbf9a2 to 57118e2 Compare June 5, 2026 04:50
@vasu-nageshri vasu-nageshri force-pushed the fix/rename-updateat-parameter branch from 57118e2 to 3e4a367 Compare June 5, 2026 04:56
@dhyash-simform dhyash-simform merged commit b4298e5 into master Jun 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants