| 107 | } |
| 108 | |
| 109 | ChatSettingsData getDefaultSettings() { |
| 110 | return ChatSettingsData{ |
| 111 | .senderId = 0, |
| 112 | .nickname = "Device", |
| 113 | .encryptionKey = {}, |
| 114 | .hasEncryptionKey = false, |
| 115 | .chatChannel = "#general" |
| 116 | }; |
| 117 | } |
| 118 | |
| 119 | ChatSettingsData loadSettings() { |
| 120 | ChatSettingsData settings = getDefaultSettings(); |