Skip to content
This repository has been archived by the owner on Mar 11, 2022. It is now read-only.

Commit

Permalink
Show 'Encrypted Message' as placeholder in text input for encrypted c…
Browse files Browse the repository at this point in the history
…hannels
  • Loading branch information
neilalexander committed Aug 15, 2018
1 parent 62b7cce commit c25bf1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Seaglass/Controller/Main View/MainViewRoomController.swift
Expand Up @@ -380,8 +380,10 @@ class MainViewRoomController: NSViewController, MatrixRoomDelegate, NSTableViewD
RoomMessageTableView.reloadData()

if entry.roomsCacheEntry!.encrypted() {
RoomMessageInput.placeholderString = "Encrypted message"
RoomEncryptionButton.image = NSImage(named: NSImage.Name.lockLockedTemplate)
} else {
RoomMessageInput.placeholderString = "Message"
RoomEncryptionButton.image = NSImage(named: NSImage.Name.lockUnlockedTemplate)
}

Expand Down

0 comments on commit c25bf1e

Please sign in to comment.