adium/adium
Clone
Summary
Browse
Changes
Graph
Prompt the user to authenticate again when using the refresh_token gives an error. Also, show the error to the user.
GoogleOAuth2
2015-04-01, Thijs Alkemade
c4923ddd82bf
Prompt the user to authenticate again when using the refresh_token gives an error. Also, show the error to the user.
global
HandyAdiumScripts
on
run
tell
application
"Adium"
set
newChat
to
HandyAdiumScripts
's
makeNewChat
()
set
n
to
(
HandyAdiumScripts
's
defaultService
&
"."
&
HandyAdiumScripts
's
defaultParticipant
)
if
(
get
id
of
newChat
)
is not
n
then
close
newChat
--restore
error
end
close
newChat
--restore
end
tell
end
run