Skip to content

Commit 2f75f56

Browse files
gnpricechrisbobbe
authored andcommitted
api [nfc]: Use TopicName type in an API-interpreting static method
1 parent ebe4e9b commit 2f75f56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/api/model/model.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ enum MessageEditState {
831831
/// The Zulip "resolved topics" feature is implemented by renaming the topic;
832832
/// but for purposes of [Message.editState], we want to ignore such renames.
833833
/// This method identifies topic moves that should be ignored in that context.
834-
static bool topicMoveWasResolveOrUnresolve(String topic, String prevTopic) {
834+
static bool topicMoveWasResolveOrUnresolve(TopicName topic, TopicName prevTopic) {
835835
if (topic.startsWith(_resolvedTopicPrefix)
836836
&& topic.substring(_resolvedTopicPrefix.length) == prevTopic) {
837837
return true;

0 commit comments

Comments
 (0)