diff --git a/lib/controller/stillbox.dart b/lib/controller/stillbox.dart index 9afee64..50c8b4b 100644 --- a/lib/controller/stillbox.dart +++ b/lib/controller/stillbox.dart @@ -134,7 +134,14 @@ class Stillbox extends ChangeNotifier { case Message_ToClientMessage.hello: version = msg.hello.version; case Message_ToClientMessage.response: - final response = msg.response; + _handleCommandResponse(msg.response); + default: + } + } + + void _handleCommandResponse(CommandResponse response) { + switch (response.whichCommandResponse()) { + case CommandResponse_CommandResponse.tgInfo: tgCache.handleTgInfo(response.tgInfo); default: }