Skip to content

Commit 8fe92ff

Browse files
Add is_read_only to the attribute
1 parent 9f6721f commit 8fe92ff

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

sdk/diffgram/file/conversational.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ def add_conversationa_attributes_if_doesnt_exist(self):
3939
kind="text",
4040
name="message_author",
4141
is_global = True,
42-
global_type = 'file'
42+
global_type = 'file',
43+
is_read_only=True
4344
)
4445

4546
if message_time_attribute is None:
@@ -50,7 +51,8 @@ def add_conversationa_attributes_if_doesnt_exist(self):
5051
kind="time",
5152
name="message_time",
5253
is_global = True,
53-
global_type = 'file'
54+
global_type = 'file',
55+
is_read_only=True
5456
)
5557

5658
if message_date_attribute is None:
@@ -61,7 +63,8 @@ def add_conversationa_attributes_if_doesnt_exist(self):
6163
kind="date",
6264
name="message_date",
6365
is_global = True,
64-
global_type = 'file'
66+
global_type = 'file',
67+
is_read_only=True
6568
)
6669

6770
self.author_attribute = message_author_attribute

0 commit comments

Comments
 (0)