Use first name only instead of full name when notifying about users typing
This commit is contained in:
		| @@ -18,6 +18,7 @@ | ||||
|  | ||||
| * Replaced the underlying library  we were using for spelling correction as is no longer in development. Instead, we started to use a new approach in socializer, which, in theory, should allow us to switch language for spelling correction and other benefits a bit later. For now, available languages are Russian, Ukranian, English, Polish and Spanish, but more languages can be added by request. | ||||
| * When downloading a file (such as an audio file or document), the download process should be relatively faster due to some optimizations made in the function. | ||||
| * Socializer now uses just the first name of users in typing notifications. | ||||
|  | ||||
| ## Changes in Version 0.23 (11.11.2019) | ||||
|  | ||||
|   | ||||
| @@ -554,7 +554,8 @@ class Controller(object): | ||||
| 		buffer = self.search_chat_buffer(obj.user_id) | ||||
| 		if buffer != None and buffer == self.get_current_buffer() and self.is_focused(): | ||||
| 			user = self.session.get_user(obj.user_id) | ||||
| 			output.speak(_("{user1_nom} is typing...").format(**user)) | ||||
| 			user1_nom = user["user1_nom"].split()[0] | ||||
| 			output.speak(_("{user1_nom} is typing...").format(user1_nom=user1_nom)) | ||||
|  | ||||
| 	def get_chat(self, obj=None): | ||||
| 		""" Searches or creates a chat buffer with the id of the user that is sending or receiving a message. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user