# Search Messages Screen & Channels Screen

The Search Messages Screen and the Channels Screen contain two main components that control all the functionality.

## The Components

### **Input Fields**

<figure><img src="https://3467607506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LhGHkPsv15svPIU5I7C%2Fuploads%2Fz2BjojSealOaCOiAisyB%2Fmessaginginput.png?alt=media&#x26;token=c607558f-60a2-4bc0-8761-6dfe305e5161" alt=""><figcaption></figcaption></figure>

Each screen contains an input field that will begin to filter the list as soon as a user starts to type into it.

### **List Component**

Each list contains information regarding either Messages or the available Channels. Each list is filtered by the text that appears in their connected “Inputs” on the screen.

⚡ **Actions**

The Channel Screen:

* On each list item
  * ⚡ Update Logged In User > Active Channel > Channel ID. This will ensure the User sees the channel they clicked on when they return to the Messages Screen
  * ⚡ Update Logged In User > Channels > Add Current Channel *but only when* the “Current Channel > ChannelUsers” does not contain the Logged In User.
  * ⚡ Link Action to the ‘Messaging’ Screen

{% hint style="danger" %}
Similar to visibility rules for components, there are conditional actions. To denote whether or not something has a conditional action — you will notice ✨ on the icon.

<img src="https://3467607506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LhGHkPsv15svPIU5I7C%2Fuploads%2FUDtaRwjFCSL8M1jpNiNK%2Fconditionalaction.png?alt=media&#x26;token=db36cc89-7ba3-4a20-9464-b8b638049ac9" alt="" data-size="original">

If you make edits to these actions, check for conditional logic that may be applied:

<img src="https://3467607506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LhGHkPsv15svPIU5I7C%2Fuploads%2F3Ovdyb6CIh8NE5VakEpb%2Feditingconditionalactions.png?alt=media&#x26;token=d70aa539-261a-4242-a3e9-871baaba4f7c" alt="" data-size="original">

This can be found under “ADVANCED” in the settings of an action.
{% endhint %}
