Skip to content

Commit 41b2c80

Browse files
author
Max Klyga
committed
Add user reactivation method
1 parent d63e323 commit 41b2c80

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

stream_chat/__pkg__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
__author__ = "Tommaso Barbugli"
22
__copyright__ = "Copyright 2019, Stream.io, Inc"
3-
__version__ = "0.4.2"
3+
__version__ = "0.4.3"
44
__maintainer__ = "Tommaso Barbugli"
55
__email__ = "[email protected]"
66
__status__ = "Production"

stream_chat/client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ def delete_user(self, user_id, **options):
111111
def deactivate_user(self, user_id, **options):
112112
return self.post("users/{}/deactivate".format(user_id), data=options)
113113

114+
def reactivate_user(self, user_id, **options):
115+
return self.post("users/{}/reactivate".format(user_id), data=options)
116+
114117
def export_user(self, user_id, **options):
115118
return self.get("users/{}/export".format(user_id), options)
116119

0 commit comments

Comments
 (0)