Skip to content
Merged
Prev Previous commit
Next Next commit
Add is_read_only to the attribute
  • Loading branch information
vitalii-bulyzhyn committed Feb 24, 2023
commit 8fe92ff7ba4ad00029f0b74e6d4c338bf89fa45c
9 changes: 6 additions & 3 deletions sdk/diffgram/file/conversational.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ def add_conversationa_attributes_if_doesnt_exist(self):
kind="text",
name="message_author",
is_global = True,
global_type = 'file'
global_type = 'file',
is_read_only=True
)

if message_time_attribute is None:
Expand All @@ -50,7 +51,8 @@ def add_conversationa_attributes_if_doesnt_exist(self):
kind="time",
name="message_time",
is_global = True,
global_type = 'file'
global_type = 'file',
is_read_only=True
)

if message_date_attribute is None:
Expand All @@ -61,7 +63,8 @@ def add_conversationa_attributes_if_doesnt_exist(self):
kind="date",
name="message_date",
is_global = True,
global_type = 'file'
global_type = 'file',
is_read_only=True
)

self.author_attribute = message_author_attribute
Expand Down