Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Elixxir dApps SDK Swift
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile
iOS
Elixxir dApps SDK Swift
Commits
4e501f2a
Commit
4e501f2a
authored
2 years ago
by
Dariusz Rybicki
Browse files
Options
Downloads
Patches
Plain Diff
Disable image picker for group chats
parent
15501e89
No related branches found
No related tags found
2 merge requests
!153
Release 1.1.0
,
!152
[Messenger example] group chat
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Examples/xx-messenger/Sources/ChatFeature/ChatView.swift
+8
-0
8 additions, 0 deletions
Examples/xx-messenger/Sources/ChatFeature/ChatView.swift
with
8 additions
and
0 deletions
Examples/xx-messenger/Sources/ChatFeature/ChatView.swift
+
8
−
0
View file @
4e501f2a
...
@@ -16,6 +16,7 @@ public struct ChatView: View {
...
@@ -16,6 +16,7 @@ public struct ChatView: View {
var
failure
:
String
?
var
failure
:
String
?
var
sendFailure
:
String
?
var
sendFailure
:
String
?
var
text
:
String
var
text
:
String
var
disableImagePicker
:
Bool
init
(
state
:
ChatComponent
.
State
)
{
init
(
state
:
ChatComponent
.
State
)
{
myContactId
=
state
.
myContactId
myContactId
=
state
.
myContactId
...
@@ -23,6 +24,12 @@ public struct ChatView: View {
...
@@ -23,6 +24,12 @@ public struct ChatView: View {
failure
=
state
.
failure
failure
=
state
.
failure
sendFailure
=
state
.
sendFailure
sendFailure
=
state
.
sendFailure
text
=
state
.
text
text
=
state
.
text
switch
state
.
id
{
case
.
contact
(
_
):
disableImagePicker
=
false
case
.
group
(
_
):
disableImagePicker
=
true
}
}
}
}
}
...
@@ -109,6 +116,7 @@ public struct ChatView: View {
...
@@ -109,6 +116,7 @@ public struct ChatView: View {
}
}
}
}
}
}
.
disabled
(
viewStore
.
disableImagePicker
)
}
}
}
}
.
padding
()
.
padding
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment