TikTok first displayed a message saying the app was unavailable and later thanked Trump after it restored service.