Skip to content

Commit 00dd8a4

Browse files
gnpricechrisbobbe
authored andcommitted
api [nfc]: Use TopicName.apiName for identifying resolve/unresolve moves
1 parent c1b49b3 commit 00dd8a4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/api/model/model.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -835,13 +835,13 @@ enum MessageEditState {
835835
/// but for purposes of [Message.editState], we want to ignore such renames.
836836
/// This method identifies topic moves that should be ignored in that context.
837837
static bool topicMoveWasResolveOrUnresolve(TopicName topic, TopicName prevTopic) {
838-
if (topic.startsWith(_resolvedTopicPrefix)
839-
&& topic.substring(_resolvedTopicPrefix.length) == prevTopic) {
838+
if (topic.apiName.startsWith(_resolvedTopicPrefix)
839+
&& topic.apiName.substring(_resolvedTopicPrefix.length) == prevTopic.apiName) {
840840
return true;
841841
}
842842

843-
if (prevTopic.startsWith(_resolvedTopicPrefix)
844-
&& prevTopic.substring(_resolvedTopicPrefix.length) == topic) {
843+
if (prevTopic.apiName.startsWith(_resolvedTopicPrefix)
844+
&& prevTopic.apiName.substring(_resolvedTopicPrefix.length) == topic.apiName) {
845845
return true;
846846
}
847847

0 commit comments

Comments
 (0)